<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: immcli.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00293.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">结构体</a> &#124;
<a href="#define-members">宏定义</a> &#124;
<a href="#typedef-members">类型定义</a> &#124;
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle">
<div class="title">immcli.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;windows.h&gt;</code><br />
<code>#include &lt;stddef.h&gt;</code><br />
<code>#include &lt;wingdip.h&gt;</code><br />
<code>#include &quot;winuserp.h&quot;</code><br />
<code>#include &quot;winuserk.h&quot;</code><br />
<code>#include &quot;<a class="el" href="a00347_source.html">kbd.h</a>&quot;</code><br />
<code>#include &lt;wowuserp.h&gt;</code><br />
<code>#include &lt;memory.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
<code>#include &quot;<a class="el" href="a00368_source.html">vkoem.h</a>&quot;</code><br />
<code>#include &lt;imm.h&gt;</code><br />
<code>#include &lt;immp.h&gt;</code><br />
<code>#include &lt;ime.h&gt;</code><br />
<code>#include &lt;imep.h&gt;</code><br />
<code>#include &quot;<a class="el" href="a00341_source.html">immstruc.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="a00344_source.html">immuser.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="a00326_source.html">softkbd.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="a00365_source.html">user.h</a>&quot;</code><br />
</div>
<p><a href="a00293_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
结构体</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01973.html">_ENUMREGWORDDATA</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a3a75770af38d05856eb2e9d1867b471c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a3a75770af38d05856eb2e9d1867b471c">OEMRESOURCE</a>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a3a75770af38d05856eb2e9d1867b471c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f572cf01194adf6f33b18b9ea31b65b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a4f572cf01194adf6f33b18b9ea31b65b">RIP_COMPONENT</a>&#160;&#160;&#160;RIP_IMM</td></tr>
<tr class="separator:a4f572cf01194adf6f33b18b9ea31b65b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a8d67a2c4cc9ce4dd6aabfd9e460635"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a4a8d67a2c4cc9ce4dd6aabfd9e460635">ImmAssert</a>&#160;&#160;&#160;<a class="el" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a></td></tr>
<tr class="separator:a4a8d67a2c4cc9ce4dd6aabfd9e460635"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5bc7769e253655ef0e137736412d7b7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#ad5bc7769e253655ef0e137736412d7b7">bUser32Initialized</a>&#160;&#160;&#160;(<a class="el" href="a03728.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a> != NULL)</td></tr>
<tr class="separator:ad5bc7769e253655ef0e137736412d7b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41d387d1b2d42169cbaa2092c8a02abf"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a41d387d1b2d42169cbaa2092c8a02abf">ValidateHwnd</a>(hwnd)</td></tr>
<tr class="separator:a41d387d1b2d42169cbaa2092c8a02abf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afadb7d5d0755d9a7a35a933f23a25244"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#afadb7d5d0755d9a7a35a933f23a25244">ValidateHimc</a>(himc)</td></tr>
<tr class="separator:afadb7d5d0755d9a7a35a933f23a25244"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a315fa72a2df1ad8c8bbb775c1c36a47d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a315fa72a2df1ad8c8bbb775c1c36a47d">RevalidateHimc</a>(himc)</td></tr>
<tr class="separator:a315fa72a2df1ad8c8bbb775c1c36a47d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d753f884cab418538a34030823aa1d0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a3d753f884cab418538a34030823aa1d0">ImmLocalAlloc</a>(uFlag,  uBytes)&#160;&#160;&#160;HeapAlloc(<a class="el" href="a00293.html#a4881f1bbdc40b620a6f39c6b9b0edbf9">pImmHeap</a>, uFlag, (uBytes))</td></tr>
<tr class="separator:a3d753f884cab418538a34030823aa1d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae22b15a30f2cdbe6d81a291e325fe628"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#ae22b15a30f2cdbe6d81a291e325fe628">ImmLocalReAlloc</a>(p,  uBytes,  uFlags)&#160;&#160;&#160;HeapReAlloc(<a class="el" href="a00293.html#a4881f1bbdc40b620a6f39c6b9b0edbf9">pImmHeap</a>, uFlags, (LPSTR)(p), (uBytes))</td></tr>
<tr class="separator:ae22b15a30f2cdbe6d81a291e325fe628"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6ef91973c6a6f95f9b95f0c2a7c3315"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#ae6ef91973c6a6f95f9b95f0c2a7c3315">ImmLocalFree</a>(p)&#160;&#160;&#160;HeapFree(<a class="el" href="a00293.html#a4881f1bbdc40b620a6f39c6b9b0edbf9">pImmHeap</a>, 0, (LPSTR)(p))</td></tr>
<tr class="separator:ae6ef91973c6a6f95f9b95f0c2a7c3315"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30a3653f227a9c7eb370edb43c717d2b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a30a3653f227a9c7eb370edb43c717d2b">ImmLocalSize</a>(p)&#160;&#160;&#160;HeapSize(<a class="el" href="a00293.html#a4881f1bbdc40b620a6f39c6b9b0edbf9">pImmHeap</a>, 0, (LPSTR)(p))</td></tr>
<tr class="separator:a30a3653f227a9c7eb370edb43c717d2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8dcb8a9206f8fa751cfb51b7383b38cf"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a8dcb8a9206f8fa751cfb51b7383b38cf">ImmLocalLock</a>(p)&#160;&#160;&#160;(LPSTR)(p)</td></tr>
<tr class="separator:a8dcb8a9206f8fa751cfb51b7383b38cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0db8d1fe90b656ba8349e3baff3d3c5d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a0db8d1fe90b656ba8349e3baff3d3c5d">ImmLocalUnlock</a>(p)</td></tr>
<tr class="separator:a0db8d1fe90b656ba8349e3baff3d3c5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f9665a797e363b80c20bb87c5fa8950"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a8f9665a797e363b80c20bb87c5fa8950">ImmLocalFlags</a>(p)&#160;&#160;&#160;0</td></tr>
<tr class="separator:a8f9665a797e363b80c20bb87c5fa8950"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac68b2433f106f946e40df83ad1fd0fd3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#ac68b2433f106f946e40df83ad1fd0fd3">ImmLocalHandle</a>(p)&#160;&#160;&#160;(HLOCAL)(p)</td></tr>
<tr class="separator:ac68b2433f106f946e40df83ad1fd0fd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd875fda02d64715d13c9508f00fe612"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#abd875fda02d64715d13c9508f00fe612">GetInputContextProcess</a>(himc)&#160;&#160;&#160;(<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)<a class="el" href="a00341.html#a9286eb08d0bee9649ae7c9b0ed026d38">NtUserQueryInputContext</a>(himc, <a class="el" href="a00341.html#aa8561f5f75a4aa8454edf70100382696abd45c20ba04ad700db84b59cf30296e3">InputContextProcess</a>)</td></tr>
<tr class="separator:abd875fda02d64715d13c9508f00fe612"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5b41822aa928c904209ff5ab3f734b7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#aa5b41822aa928c904209ff5ab3f734b7">GetInputContextThread</a>(himc)&#160;&#160;&#160;(<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)<a class="el" href="a00341.html#a9286eb08d0bee9649ae7c9b0ed026d38">NtUserQueryInputContext</a>(himc, <a class="el" href="a00341.html#aa8561f5f75a4aa8454edf70100382696aacb370ba0121f93a4d4bfde1697a51aa">InputContextThread</a>)</td></tr>
<tr class="separator:aa5b41822aa928c904209ff5ab3f734b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77c0e294785e34762c3820d1b7b25187"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a77c0e294785e34762c3820d1b7b25187">GetWindowProcess</a>(hwnd)&#160;&#160;&#160;(<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)<a class="el" href="a03614.html#a9167c243c498e085495ce9925166c7ea">NtUserQueryWindow</a>(hwnd, WindowProcess)</td></tr>
<tr class="separator:a77c0e294785e34762c3820d1b7b25187"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad664f25fc3e24dc7666c8236a362b69"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#aad664f25fc3e24dc7666c8236a362b69">GETPROCESSID</a>()&#160;&#160;&#160;((<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)NtCurrentTeb()-&gt;ClientId.UniqueProcess)</td></tr>
<tr class="separator:aad664f25fc3e24dc7666c8236a362b69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc27486f01a116d0c0eaeb809b796060"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#adc27486f01a116d0c0eaeb809b796060">DWORD_ALIGN</a>(x)&#160;&#160;&#160;((x+3)&amp;~3)</td></tr>
<tr class="separator:adc27486f01a116d0c0eaeb809b796060"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9a8b2084b3f85ce62924981d68efa1e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#ac9a8b2084b3f85ce62924981d68efa1e">SetICF</a>(pClientImc,  flag)&#160;&#160;&#160;((pClientImc)-&gt;dwFlags |= flag)</td></tr>
<tr class="separator:ac9a8b2084b3f85ce62924981d68efa1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a2bb78ecf5a1bdd3c1d5d1710ccd011"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a6a2bb78ecf5a1bdd3c1d5d1710ccd011">ClrICF</a>(pClientImc,  flag)&#160;&#160;&#160;((pClientImc)-&gt;dwFlags &amp;= ~flag)</td></tr>
<tr class="separator:a6a2bb78ecf5a1bdd3c1d5d1710ccd011"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14c7912f65c80bf423e70d6038ad8a96"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc,  flag)&#160;&#160;&#160;((pClientImc)-&gt;dwFlags &amp; flag)</td></tr>
<tr class="separator:a14c7912f65c80bf423e70d6038ad8a96"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
类型定义</h2></td></tr>
<tr class="memitem:afae083d48dbe88dbfb6bf5392b7fece5"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="a01973.html">_ENUMREGWORDDATA</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#afae083d48dbe88dbfb6bf5392b7fece5">ENUMREGWORDDATA</a></td></tr>
<tr class="separator:afae083d48dbe88dbfb6bf5392b7fece5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08fd4a740b39f257dc2fa63f9ce7ab92"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="a01973.html">_ENUMREGWORDDATA</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a08fd4a740b39f257dc2fa63f9ce7ab92">PENUMREGWORDDATA</a></td></tr>
<tr class="separator:a08fd4a740b39f257dc2fa63f9ce7ab92"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:aaeb810737d9648872bdb0e907b447dcb"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#aaeb810737d9648872bdb0e907b447dcb">CreateInputContext</a> (HIMC hImc, HKL hKL)</td></tr>
<tr class="separator:aaeb810737d9648872bdb0e907b447dcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7745c0c95ee0276623fda144302b43b2"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a7745c0c95ee0276623fda144302b43b2">DestroyInputContext</a> (HIMC hImc, HKL hKL)</td></tr>
<tr class="separator:a7745c0c95ee0276623fda144302b43b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ef2303b23e7d9e917ae428d637f3dcd"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a1ef2303b23e7d9e917ae428d637f3dcd">SelectInputContext</a> (HKL hSelKL, HKL hUnSelKL, HIMC hImc)</td></tr>
<tr class="separator:a1ef2303b23e7d9e917ae428d637f3dcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86710598a5f27f0601d453cdbb0104f4"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a86710598a5f27f0601d453cdbb0104f4">EnumInputContext</a> (<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> idThread, <a class="el" href="a00344.html#a23b11b6633c37c3ff8b389b1a339b9ca">IMCENUMPROC</a> lpfn, LONG lParam)</td></tr>
<tr class="separator:a86710598a5f27f0601d453cdbb0104f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0454939fd666a799e492c4dd53a6f322"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a0454939fd666a799e492c4dd53a6f322">BuildHimcList</a> (<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> idThread, HIMC **pphimcFirst)</td></tr>
<tr class="separator:a0454939fd666a799e492c4dd53a6f322"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbbc6737a115ca5d74c863376eb5418c"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#abbbc6737a115ca5d74c863376eb5418c">ImmSetCompositionStringWorker</a> (HIMC hImc, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwIndex, LPCVOID lpComp, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwCompLen, LPCVOID lpRead, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwReadLen, BOOL fAnsi)</td></tr>
<tr class="separator:abbbc6737a115ca5d74c863376eb5418c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa61fdc966411e1202eea4ee9c1470df9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#aa61fdc966411e1202eea4ee9c1470df9">ImmGetCandidateListCountWorker</a> (HIMC hImc, LPDWORD lpdwListCount, BOOL fAnsi)</td></tr>
<tr class="separator:aa61fdc966411e1202eea4ee9c1470df9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9713d317695c536dc50779f29b007389"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a9713d317695c536dc50779f29b007389">ImmGetCandidateListWorker</a> (HIMC hImc, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwIndex, LPCANDIDATELIST lpCandList, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwBufLen, BOOL fAnsi)</td></tr>
<tr class="separator:a9713d317695c536dc50779f29b007389"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad2a7696b1d8bb0244c135f499b00d27"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#aad2a7696b1d8bb0244c135f499b00d27">ImmGetGuideLineWorker</a> (HIMC hImc, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwIndex, LPBYTE lpBuf, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwBufLen, BOOL fAnsi)</td></tr>
<tr class="separator:aad2a7696b1d8bb0244c135f499b00d27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a2ea8ec94d9eb9147d2fd6f208b7d2f"><td class="memItemLeft" align="right" valign="top">LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a0a2ea8ec94d9eb9147d2fd6f208b7d2f">InternalGetCompositionStringA</a> (LPCOMPOSITIONSTRING lpCompStr, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwIndex, LPVOID lpBuf, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwBufLen, BOOL fAnsiImc)</td></tr>
<tr class="separator:a0a2ea8ec94d9eb9147d2fd6f208b7d2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abed43996af903dc773974eb9983b75b4"><td class="memItemLeft" align="right" valign="top">LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#abed43996af903dc773974eb9983b75b4">InternalGetCompositionStringW</a> (LPCOMPOSITIONSTRING lpCompStr, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwIndex, LPVOID lpBuf, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwBufLen, BOOL fAnsiImc)</td></tr>
<tr class="separator:abed43996af903dc773974eb9983b75b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fb668b6f2ddb30602d6bcfe784d371d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a9fb668b6f2ddb30602d6bcfe784d371d">InternalGetCandidateListAtoW</a> (LPCANDIDATELIST lpCandListA, LPCANDIDATELIST lpCandListW, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwBufLen)</td></tr>
<tr class="separator:a9fb668b6f2ddb30602d6bcfe784d371d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d8525c61132e88d7cbc60f12d725aa1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a2d8525c61132e88d7cbc60f12d725aa1">InternalGetCandidateListWtoA</a> (LPCANDIDATELIST lpCandListW, LPCANDIDATELIST lpCandListA, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwBufLen)</td></tr>
<tr class="separator:a2d8525c61132e88d7cbc60f12d725aa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11958b1bf178b9f0b22c5ca7624e0b20"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a11958b1bf178b9f0b22c5ca7624e0b20">CalcCharacterPositionAtoW</a> (<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwCharPosA, LPSTR lpszCharStr)</td></tr>
<tr class="separator:a11958b1bf178b9f0b22c5ca7624e0b20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60b682d5e1270211715dd542b85bc5e8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a60b682d5e1270211715dd542b85bc5e8">CalcCharacterPositionWtoA</a> (<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwCharPosW, LPWSTR lpwszCharStr)</td></tr>
<tr class="separator:a60b682d5e1270211715dd542b85bc5e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6beb4de33e1df8824bfce43223697ee3"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a6beb4de33e1df8824bfce43223697ee3">LFontAtoLFontW</a> (LPLOGFONTA lfFontA, LPLOGFONTW lfFontW)</td></tr>
<tr class="separator:a6beb4de33e1df8824bfce43223697ee3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bb8f7d7daf939f1d2cf5828e8ded286"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a0bb8f7d7daf939f1d2cf5828e8ded286">LFontWtoLFontA</a> (LPLOGFONTW lfFontW, LPLOGFONTA lfFontA)</td></tr>
<tr class="separator:a0bb8f7d7daf939f1d2cf5828e8ded286"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaea80354ded6256a41bd6afc2d50a81"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#acaea80354ded6256a41bd6afc2d50a81">MakeIMENotify</a> (HIMC hImc, HWND hWnd, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwAction, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwIndex, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwValue, WPARAM wParam, LPARAM lParam)</td></tr>
<tr class="separator:acaea80354ded6256a41bd6afc2d50a81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a052f616554e546f5e09dfb7b7ecfab4c"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a052f616554e546f5e09dfb7b7ecfab4c">InquireIme</a> (<a class="el" href="a00344.html#a62ef1d2de4f5999445749347090577a3">PIMEDPI</a> pImeDpi)</td></tr>
<tr class="separator:a052f616554e546f5e09dfb7b7ecfab4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a082414a7811f5933c662d680f291cde4"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a082414a7811f5933c662d680f291cde4">LoadIME</a> (<a class="el" href="a00341.html#a25e40eacaa986803eb17bafd33ae4dae">PIMEINFOEX</a> piiex, <a class="el" href="a00344.html#a62ef1d2de4f5999445749347090577a3">PIMEDPI</a> pImeDpi)</td></tr>
<tr class="separator:a082414a7811f5933c662d680f291cde4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeaaca4dc06f37c780d48a7039c0ad6ba"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#aeaaca4dc06f37c780d48a7039c0ad6ba">UnloadIME</a> (<a class="el" href="a00344.html#a62ef1d2de4f5999445749347090577a3">PIMEDPI</a> pImeDpi, BOOL fTerminateIme)</td></tr>
<tr class="separator:aeaaca4dc06f37c780d48a7039c0ad6ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affeb9a1f3463582f4269fc771b6eea01"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00344.html#a62ef1d2de4f5999445749347090577a3">PIMEDPI</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#affeb9a1f3463582f4269fc771b6eea01">FindOrLoadImeDpi</a> (HKL hKL)</td></tr>
<tr class="separator:affeb9a1f3463582f4269fc771b6eea01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05aae3da8b024bc1c769b9b9d9b664f9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a05aae3da8b024bc1c769b9b9d9b664f9">AddBackslash</a> (PWSTR pwszPath)</td></tr>
<tr class="separator:a05aae3da8b024bc1c769b9b9d9b664f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeee10f6fbed98613f0a627e327f6747b"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#aeee10f6fbed98613f0a627e327f6747b">LoadVersionInfo</a> (<a class="el" href="a00341.html#a25e40eacaa986803eb17bafd33ae4dae">PIMEINFOEX</a> piiex)</td></tr>
<tr class="separator:aeee10f6fbed98613f0a627e327f6747b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4346af115109f5eb5c09f144b9b226f"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#af4346af115109f5eb5c09f144b9b226f">ImmIsUIMessageWorker</a> (HWND hIMEWnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> message, WPARAM wParam, LPARAM lParam, BOOL fAnsi)</td></tr>
<tr class="separator:af4346af115109f5eb5c09f144b9b226f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8315d2c807ba18ba9e528c40614b6173"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00365.html#a177dce23f2b497ba8dc22f5a92d3f3d3">PTHREADINFO</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a> (VOID)</td></tr>
<tr class="separator:a8315d2c807ba18ba9e528c40614b6173"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1020bebc03d70d1cb65e0f2f363bc6a5"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a1020bebc03d70d1cb65e0f2f363bc6a5">TestInputContextProcess</a> (<a class="el" href="a00365.html#abc706d4b4a5047514d67d988cc24ce90">PIMC</a> pImc)</td></tr>
<tr class="separator:a1020bebc03d70d1cb65e0f2f363bc6a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a024f6c368bd1baf2f62fe75c761ca7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> CALLBACK&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a9a024f6c368bd1baf2f62fe75c761ca7">EnumRegisterWordProcA</a> (LPCSTR lpszReading, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwStyle, LPCSTR lpszString, <a class="el" href="a00293.html#a08fd4a740b39f257dc2fa63f9ce7ab92">PENUMREGWORDDATA</a> pEnumRegWordData)</td></tr>
<tr class="separator:a9a024f6c368bd1baf2f62fe75c761ca7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0fbeccc0a4812abbe4f33619b903a73"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> CALLBACK&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#aa0fbeccc0a4812abbe4f33619b903a73">EnumRegisterWordProcW</a> (LPCWSTR lpwszReading, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwStyle, LPCWSTR lpwszString, <a class="el" href="a00293.html#a08fd4a740b39f257dc2fa63f9ce7ab92">PENUMREGWORDDATA</a> pEnumRegWordData)</td></tr>
<tr class="separator:aa0fbeccc0a4812abbe4f33619b903a73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3cdae94ad0358e721373e78a01f13d1"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#ac3cdae94ad0358e721373e78a01f13d1">ImmPostMessages</a> (HWND hwnd, HIMC hImc, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> iNum, PDWORD pdwTransBuf)</td></tr>
<tr class="separator:ac3cdae94ad0358e721373e78a01f13d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecc706c92f23c31fd53c76cac08492b4"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#aecc706c92f23c31fd53c76cac08492b4">HotKeyIDDispatcher</a> (HWND hWnd, HIMC hImc, HKL hKL, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwHotKeyID)</td></tr>
<tr class="separator:aecc706c92f23c31fd53c76cac08492b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:a10bde0fee9a1b44eafd17dfae0807a12"><td class="memItemLeft" align="right" valign="top">HINSTANCE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a10bde0fee9a1b44eafd17dfae0807a12">ghInst</a></td></tr>
<tr class="separator:a10bde0fee9a1b44eafd17dfae0807a12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4881f1bbdc40b620a6f39c6b9b0edbf9"><td class="memItemLeft" align="right" valign="top">PVOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a4881f1bbdc40b620a6f39c6b9b0edbf9">pImmHeap</a></td></tr>
<tr class="separator:a4881f1bbdc40b620a6f39c6b9b0edbf9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad760da1dd81d9e84dee607d18edfde39"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00365.html#a9ea7647252855da35cfeb4253e1a4c80">PSERVERINFO</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a></td></tr>
<tr class="separator:ad760da1dd81d9e84dee607d18edfde39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac02f0141c423acd033ecdd2a757a3cc1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00365.html#a940f314bbf6ecd9398256c443010dbe4">SHAREDINFO</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#ac02f0141c423acd033ecdd2a757a3cc1">gSharedInfo</a></td></tr>
<tr class="separator:ac02f0141c423acd033ecdd2a757a3cc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8944ae644d08d76a5bac7a209743293"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00344.html#a62ef1d2de4f5999445749347090577a3">PIMEDPI</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#ad8944ae644d08d76a5bac7a209743293">gpImeDpi</a></td></tr>
<tr class="separator:ad8944ae644d08d76a5bac7a209743293"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7ac3db019078f20fcf82850b103d097"><td class="memItemLeft" align="right" valign="top">CRITICAL_SECTION&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#ab7ac3db019078f20fcf82850b103d097">gcsImeDpi</a></td></tr>
<tr class="separator:ab7ac3db019078f20fcf82850b103d097"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad30e6f0a79eb6ede0a70b9283632eb2c"><td class="memItemLeft" align="right" valign="top">POINT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#ad30e6f0a79eb6ede0a70b9283632eb2c">gptWorkArea</a></td></tr>
<tr class="separator:ad30e6f0a79eb6ede0a70b9283632eb2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d90a509693544f26391a540794f76f5"><td class="memItemLeft" align="right" valign="top">POINT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a0d90a509693544f26391a540794f76f5">gptRaiseEdge</a></td></tr>
<tr class="separator:a0d90a509693544f26391a540794f76f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee8d5bf4290f4bcb096ae2c0a5882f44"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#aee8d5bf4290f4bcb096ae2c0a5882f44">guScanCode</a> [0XFF]</td></tr>
<tr class="separator:aee8d5bf4290f4bcb096ae2c0a5882f44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2787410490163e996564a3c2f7cc2c35"><td class="memItemLeft" align="right" valign="top">WCHAR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a2787410490163e996564a3c2f7cc2c35">gszHandCursor</a> []</td></tr>
<tr class="separator:a2787410490163e996564a3c2f7cc2c35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8012bb4501000bd95057e4e5022b7f91"><td class="memItemLeft" align="right" valign="top">WCHAR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a8012bb4501000bd95057e4e5022b7f91">gszRegKbdLayout</a> []</td></tr>
<tr class="separator:a8012bb4501000bd95057e4e5022b7f91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2113971ea24e05b4d0789e642c7cb547"><td class="memItemLeft" align="right" valign="top">WCHAR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00293.html#a2113971ea24e05b4d0789e642c7cb547">gszValImeFile</a> []</td></tr>
<tr class="separator:a2113971ea24e05b4d0789e642c7cb547"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="ad5bc7769e253655ef0e137736412d7b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5bc7769e253655ef0e137736412d7b7">&#9670;&nbsp;</a></span>bUser32Initialized</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define bUser32Initialized&#160;&#160;&#160;(<a class="el" href="a03728.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a> != NULL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00088">88</a> 行定义.</p>

</div>
</div>
<a id="a6a2bb78ecf5a1bdd3c1d5d1710ccd011"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a2bb78ecf5a1bdd3c1d5d1710ccd011">&#9670;&nbsp;</a></span>ClrICF</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ClrICF</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pClientImc, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">flag&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;((pClientImc)-&gt;dwFlags &amp;= ~flag)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00134">134</a> 行定义.</p>

</div>
</div>
<a id="adc27486f01a116d0c0eaeb809b796060"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc27486f01a116d0c0eaeb809b796060">&#9670;&nbsp;</a></span>DWORD_ALIGN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DWORD_ALIGN</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;((x+3)&amp;~3)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00130">130</a> 行定义.</p>

</div>
</div>
<a id="abd875fda02d64715d13c9508f00fe612"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd875fda02d64715d13c9508f00fe612">&#9670;&nbsp;</a></span>GetInputContextProcess</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GetInputContextProcess</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">himc</td><td>)</td>
          <td>&#160;&#160;&#160;(<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)<a class="el" href="a00341.html#a9286eb08d0bee9649ae7c9b0ed026d38">NtUserQueryInputContext</a>(himc, <a class="el" href="a00341.html#aa8561f5f75a4aa8454edf70100382696abd45c20ba04ad700db84b59cf30296e3">InputContextProcess</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00119">119</a> 行定义.</p>

</div>
</div>
<a id="aa5b41822aa928c904209ff5ab3f734b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5b41822aa928c904209ff5ab3f734b7">&#9670;&nbsp;</a></span>GetInputContextThread</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GetInputContextThread</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">himc</td><td>)</td>
          <td>&#160;&#160;&#160;(<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)<a class="el" href="a00341.html#a9286eb08d0bee9649ae7c9b0ed026d38">NtUserQueryInputContext</a>(himc, <a class="el" href="a00341.html#aa8561f5f75a4aa8454edf70100382696aacb370ba0121f93a4d4bfde1697a51aa">InputContextThread</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00122">122</a> 行定义.</p>

</div>
</div>
<a id="aad664f25fc3e24dc7666c8236a362b69"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad664f25fc3e24dc7666c8236a362b69">&#9670;&nbsp;</a></span>GETPROCESSID</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GETPROCESSID</td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>&#160;&#160;&#160;((<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)NtCurrentTeb()-&gt;ClientId.UniqueProcess)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00128">128</a> 行定义.</p>

</div>
</div>
<a id="a77c0e294785e34762c3820d1b7b25187"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77c0e294785e34762c3820d1b7b25187">&#9670;&nbsp;</a></span>GetWindowProcess</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GetWindowProcess</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">hwnd</td><td>)</td>
          <td>&#160;&#160;&#160;(<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)<a class="el" href="a03614.html#a9167c243c498e085495ce9925166c7ea">NtUserQueryWindow</a>(hwnd, WindowProcess)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00125">125</a> 行定义.</p>

</div>
</div>
<a id="a4a8d67a2c4cc9ce4dd6aabfd9e460635"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a8d67a2c4cc9ce4dd6aabfd9e460635">&#9670;&nbsp;</a></span>ImmAssert</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ImmAssert&#160;&#160;&#160;<a class="el" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00057">57</a> 行定义.</p>

</div>
</div>
<a id="a3d753f884cab418538a34030823aa1d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d753f884cab418538a34030823aa1d0">&#9670;&nbsp;</a></span>ImmLocalAlloc</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ImmLocalAlloc</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">uFlag, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">uBytes&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;HeapAlloc(<a class="el" href="a00293.html#a4881f1bbdc40b620a6f39c6b9b0edbf9">pImmHeap</a>, uFlag, (uBytes))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00105">105</a> 行定义.</p>

</div>
</div>
<a id="a8f9665a797e363b80c20bb87c5fa8950"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f9665a797e363b80c20bb87c5fa8950">&#9670;&nbsp;</a></span>ImmLocalFlags</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ImmLocalFlags</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">p</td><td>)</td>
          <td>&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00111">111</a> 行定义.</p>

</div>
</div>
<a id="ae6ef91973c6a6f95f9b95f0c2a7c3315"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6ef91973c6a6f95f9b95f0c2a7c3315">&#9670;&nbsp;</a></span>ImmLocalFree</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ImmLocalFree</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">p</td><td>)</td>
          <td>&#160;&#160;&#160;HeapFree(<a class="el" href="a00293.html#a4881f1bbdc40b620a6f39c6b9b0edbf9">pImmHeap</a>, 0, (LPSTR)(p))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00107">107</a> 行定义.</p>

</div>
</div>
<a id="ac68b2433f106f946e40df83ad1fd0fd3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac68b2433f106f946e40df83ad1fd0fd3">&#9670;&nbsp;</a></span>ImmLocalHandle</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ImmLocalHandle</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">p</td><td>)</td>
          <td>&#160;&#160;&#160;(HLOCAL)(p)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00112">112</a> 行定义.</p>

</div>
</div>
<a id="a8dcb8a9206f8fa751cfb51b7383b38cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8dcb8a9206f8fa751cfb51b7383b38cf">&#9670;&nbsp;</a></span>ImmLocalLock</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ImmLocalLock</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">p</td><td>)</td>
          <td>&#160;&#160;&#160;(LPSTR)(p)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00109">109</a> 行定义.</p>

</div>
</div>
<a id="ae22b15a30f2cdbe6d81a291e325fe628"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae22b15a30f2cdbe6d81a291e325fe628">&#9670;&nbsp;</a></span>ImmLocalReAlloc</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ImmLocalReAlloc</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">p, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">uBytes, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">uFlags&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;HeapReAlloc(<a class="el" href="a00293.html#a4881f1bbdc40b620a6f39c6b9b0edbf9">pImmHeap</a>, uFlags, (LPSTR)(p), (uBytes))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00106">106</a> 行定义.</p>

</div>
</div>
<a id="a30a3653f227a9c7eb370edb43c717d2b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30a3653f227a9c7eb370edb43c717d2b">&#9670;&nbsp;</a></span>ImmLocalSize</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ImmLocalSize</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">p</td><td>)</td>
          <td>&#160;&#160;&#160;HeapSize(<a class="el" href="a00293.html#a4881f1bbdc40b620a6f39c6b9b0edbf9">pImmHeap</a>, 0, (LPSTR)(p))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00108">108</a> 行定义.</p>

</div>
</div>
<a id="a0db8d1fe90b656ba8349e3baff3d3c5d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0db8d1fe90b656ba8349e3baff3d3c5d">&#9670;&nbsp;</a></span>ImmLocalUnlock</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ImmLocalUnlock</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">p</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00110">110</a> 行定义.</p>

</div>
</div>
<a id="a3a75770af38d05856eb2e9d1867b471c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a75770af38d05856eb2e9d1867b471c">&#9670;&nbsp;</a></span>OEMRESOURCE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define OEMRESOURCE&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00016">16</a> 行定义.</p>

</div>
</div>
<a id="a315fa72a2df1ad8c8bbb775c1c36a47d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a315fa72a2df1ad8c8bbb775c1c36a47d">&#9670;&nbsp;</a></span>RevalidateHimc</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RevalidateHimc</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">himc</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">        (((himc) == (HIMC)NULL || !<a class="code" href="a00293.html#ad5bc7769e253655ef0e137736412d7b7">bUser32Initialized</a>) \</div>
<div class="line">        ? (<a class="code" href="a02589.html">PIMC</a>)NULL : <a class="code" href="a00365.html#ab993ad57b0d56b4f9b64df02256b611c">HMValidateHandleNoRip</a>((HANDLE)himc, TYPE_INPUTCONTEXT))</div>
</div><!-- fragment -->
<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00096">96</a> 行定义.</p>

</div>
</div>
<a id="a4f572cf01194adf6f33b18b9ea31b65b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f572cf01194adf6f33b18b9ea31b65b">&#9670;&nbsp;</a></span>RIP_COMPONENT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RIP_COMPONENT&#160;&#160;&#160;RIP_IMM</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00950_source.html">usersrv.h</a> 第 <a class="el" href="a00950_source.html#l00036">36</a> 行定义.</p>

</div>
</div>
<a id="ac9a8b2084b3f85ce62924981d68efa1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9a8b2084b3f85ce62924981d68efa1e">&#9670;&nbsp;</a></span>SetICF</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SetICF</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pClientImc, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">flag&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;((pClientImc)-&gt;dwFlags |= flag)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00132">132</a> 行定义.</p>

</div>
</div>
<a id="a14c7912f65c80bf423e70d6038ad8a96"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14c7912f65c80bf423e70d6038ad8a96">&#9670;&nbsp;</a></span>TestICF</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TestICF</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pClientImc, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">flag&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;((pClientImc)-&gt;dwFlags &amp; flag)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00136">136</a> 行定义.</p>

</div>
</div>
<a id="afadb7d5d0755d9a7a35a933f23a25244"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afadb7d5d0755d9a7a35a933f23a25244">&#9670;&nbsp;</a></span>ValidateHimc</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ValidateHimc</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">himc</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">        (((himc) == (HIMC)NULL || !<a class="code" href="a00293.html#ad5bc7769e253655ef0e137736412d7b7">bUser32Initialized</a>) \</div>
<div class="line">        ? (<a class="code" href="a02589.html">PIMC</a>)NULL : <a class="code" href="a00365.html#adcc97c154408fd5498551b3d94332c1b">HMValidateHandle</a>((HANDLE)himc, TYPE_INPUTCONTEXT))</div>
</div><!-- fragment -->
<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00093">93</a> 行定义.</p>

</div>
</div>
<a id="a41d387d1b2d42169cbaa2092c8a02abf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41d387d1b2d42169cbaa2092c8a02abf">&#9670;&nbsp;</a></span>ValidateHwnd</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ValidateHwnd</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">hwnd</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">        (((hwnd) == (HWND)NULL || !<a class="code" href="a00293.html#ad5bc7769e253655ef0e137736412d7b7">bUser32Initialized</a>) \</div>
<div class="line">        ? (<a class="code" href="a02581.html">PWND</a>)NULL : <a class="code" href="a00365.html#adcc97c154408fd5498551b3d94332c1b">HMValidateHandle</a>(hwnd, TYPE_WINDOW))</div>
</div><!-- fragment -->
<p class="definition">在文件 <a class="el" href="a00293_source.html">immcli.h</a> 第 <a class="el" href="a00293_source.html#l00090">90</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类型定义说明</h2>
<a id="afae083d48dbe88dbfb6bf5392b7fece5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afae083d48dbe88dbfb6bf5392b7fece5">&#9670;&nbsp;</a></span>ENUMREGWORDDATA</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="a01973.html">_ENUMREGWORDDATA</a> <a class="el" href="a00293.html#afae083d48dbe88dbfb6bf5392b7fece5">ENUMREGWORDDATA</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a08fd4a740b39f257dc2fa63f9ce7ab92"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08fd4a740b39f257dc2fa63f9ce7ab92">&#9670;&nbsp;</a></span>PENUMREGWORDDATA</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="a01973.html">_ENUMREGWORDDATA</a> * <a class="el" href="a00293.html#a08fd4a740b39f257dc2fa63f9ce7ab92">PENUMREGWORDDATA</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="a05aae3da8b024bc1c769b9b9d9b664f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05aae3da8b024bc1c769b9b9d9b664f9">&#9670;&nbsp;</a></span>AddBackslash()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> AddBackslash </td>
          <td>(</td>
          <td class="paramtype">PWSTR&#160;</td>
          <td class="paramname"><em>pwszPath</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00305_source.html">layime.c</a> 第 <a class="el" href="a00305_source.html#l00094">94</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;{</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;   <span class="keyword">register</span> <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uLen = wcslen(pwszPath);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;   <span class="keywordflow">if</span> (*(pwszPath+uLen-1) != <a class="code" href="a00305.html#a384146e7c4c51b37b6c8220dcbefabaa">WCHAR_BACKSLASH</a>) {</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;      pwszPath[uLen++] = <a class="code" href="a00305.html#a384146e7c4c51b37b6c8220dcbefabaa">WCHAR_BACKSLASH</a>;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;      pwszPath[uLen]   = <a class="code" href="a00305.html#ae9e5b0f1b8fe6200af1101c978ceeb63">WCHAR_NULL</a>;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;   }</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;   <span class="keywordflow">return</span> uLen;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00305_source.html#l00021">WCHAR_BACKSLASH</a> , 以及 <a class="el" href="a00305_source.html#l00022">WCHAR_NULL</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00296_source.html#l00097">LoadIME()</a> , 以及 <a class="el" href="a00305_source.html#l00312">LoadVersionInfo()</a>.</p>

</div>
</div>
<a id="a0454939fd666a799e492c4dd53a6f322"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0454939fd666a799e492c4dd53a6f322">&#9670;&nbsp;</a></span>BuildHimcList()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> BuildHimcList </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>idThread</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HIMC **&#160;</td>
          <td class="paramname"><em>pphimcFirst</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00278_source.html">context.c</a> 第 <a class="el" href="a00278_source.html#l00835">835</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160;{</div>
<div class="line"><a name="l00839"></a><span class="lineno">  839</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> cHimc;</div>
<div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160;    HIMC *phimcFirst;</div>
<div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160;    NTSTATUS Status;</div>
<div class="line"><a name="l00842"></a><span class="lineno">  842</span>&#160;    <span class="keywordtype">int</span> cTries;</div>
<div class="line"><a name="l00843"></a><span class="lineno">  843</span>&#160; </div>
<div class="line"><a name="l00844"></a><span class="lineno">  844</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00845"></a><span class="lineno">  845</span>&#160;<span class="comment">     * Allocate a buffer to hold the names.</span></div>
<div class="line"><a name="l00846"></a><span class="lineno">  846</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00847"></a><span class="lineno">  847</span>&#160;    cHimc = 64;</div>
<div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160;    phimcFirst = <a class="code" href="a00293.html#a3d753f884cab418538a34030823aa1d0">ImmLocalAlloc</a>(0, cHimc * <span class="keyword">sizeof</span>(HIMC));</div>
<div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;    <span class="keywordflow">if</span> (phimcFirst == NULL)</div>
<div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160; </div>
<div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;    Status = <a class="code" href="a00341.html#aa0b52e98b4589615cda0b806dbadfd21">NtUserBuildHimcList</a>(idThread, cHimc, phimcFirst, &amp;cHimc);</div>
<div class="line"><a name="l00853"></a><span class="lineno">  853</span>&#160; </div>
<div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00855"></a><span class="lineno">  855</span>&#160;<span class="comment">     * If the buffer wasn&#39;t big enough, reallocate</span></div>
<div class="line"><a name="l00856"></a><span class="lineno">  856</span>&#160;<span class="comment">     * the buffer and try again.</span></div>
<div class="line"><a name="l00857"></a><span class="lineno">  857</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160;    cTries = 0;</div>
<div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160;    <span class="keywordflow">while</span> (Status == STATUS_BUFFER_TOO_SMALL) {</div>
<div class="line"><a name="l00860"></a><span class="lineno">  860</span>&#160;        <a class="code" href="a00293.html#ae6ef91973c6a6f95f9b95f0c2a7c3315">ImmLocalFree</a>(phimcFirst);</div>
<div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160; </div>
<div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160;<span class="comment">         * If we can&#39;t seem to get it right,</span></div>
<div class="line"><a name="l00864"></a><span class="lineno">  864</span>&#160;<span class="comment">         * call it quits</span></div>
<div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160;        <span class="keywordflow">if</span> (cTries++ == 10)</div>
<div class="line"><a name="l00867"></a><span class="lineno">  867</span>&#160;            <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00868"></a><span class="lineno">  868</span>&#160; </div>
<div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160;        phimcFirst = <a class="code" href="a00293.html#a3d753f884cab418538a34030823aa1d0">ImmLocalAlloc</a>(0, cHimc * <span class="keyword">sizeof</span>(HIMC));</div>
<div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;        <span class="keywordflow">if</span> (phimcFirst == NULL)</div>
<div class="line"><a name="l00871"></a><span class="lineno">  871</span>&#160;            <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00872"></a><span class="lineno">  872</span>&#160; </div>
<div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160;        Status = <a class="code" href="a00341.html#aa0b52e98b4589615cda0b806dbadfd21">NtUserBuildHimcList</a>(idThread, cHimc, phimcFirst, &amp;cHimc);</div>
<div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160;    }</div>
<div class="line"><a name="l00875"></a><span class="lineno">  875</span>&#160; </div>
<div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;    <span class="keywordflow">if</span> (!NT_SUCCESS(Status) || cHimc == 0) {</div>
<div class="line"><a name="l00877"></a><span class="lineno">  877</span>&#160;        <a class="code" href="a00293.html#ae6ef91973c6a6f95f9b95f0c2a7c3315">ImmLocalFree</a>(phimcFirst);</div>
<div class="line"><a name="l00878"></a><span class="lineno">  878</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160;    }</div>
<div class="line"><a name="l00880"></a><span class="lineno">  880</span>&#160; </div>
<div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160;    *pphimcFirst = phimcFirst;</div>
<div class="line"><a name="l00882"></a><span class="lineno">  882</span>&#160; </div>
<div class="line"><a name="l00883"></a><span class="lineno">  883</span>&#160;    <span class="keywordflow">return</span> cHimc;</div>
<div class="line"><a name="l00884"></a><span class="lineno">  884</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00293_source.html#l00105">ImmLocalAlloc</a>, <a class="el" href="a00293_source.html#l00107">ImmLocalFree</a>, <a class="el" href="a00341.html#aa0b52e98b4589615cda0b806dbadfd21">NtUserBuildHimcList()</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00278_source.html#l00786">EnumInputContext()</a>.</p>

</div>
</div>
<a id="a11958b1bf178b9f0b22c5ca7624e0b20"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11958b1bf178b9f0b22c5ca7624e0b20">&#9670;&nbsp;</a></span>CalcCharacterPositionAtoW()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> CalcCharacterPositionAtoW </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwCharPosA</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPSTR&#160;</td>
          <td class="paramname"><em>lpszCharStr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00281_source.html">ctxtinfo.c</a> 第 <a class="el" href="a00281_source.html#l02814">2814</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02817"></a><span class="lineno"> 2817</span>&#160;{</div>
<div class="line"><a name="l02818"></a><span class="lineno"> 2818</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwCharPosW = 0;</div>
<div class="line"><a name="l02819"></a><span class="lineno"> 2819</span>&#160; </div>
<div class="line"><a name="l02820"></a><span class="lineno"> 2820</span>&#160;    <span class="keywordflow">while</span> (dwCharPosA != 0) {</div>
<div class="line"><a name="l02821"></a><span class="lineno"> 2821</span>&#160;        <span class="keywordflow">if</span> (IsDBCSLeadByte(*lpszCharStr)) {</div>
<div class="line"><a name="l02822"></a><span class="lineno"> 2822</span>&#160;            <span class="keywordflow">if</span> (dwCharPosA &gt;= 2) {</div>
<div class="line"><a name="l02823"></a><span class="lineno"> 2823</span>&#160;                dwCharPosA -= 2;</div>
<div class="line"><a name="l02824"></a><span class="lineno"> 2824</span>&#160;            }</div>
<div class="line"><a name="l02825"></a><span class="lineno"> 2825</span>&#160;            <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02826"></a><span class="lineno"> 2826</span>&#160;                dwCharPosA--;</div>
<div class="line"><a name="l02827"></a><span class="lineno"> 2827</span>&#160;            }</div>
<div class="line"><a name="l02828"></a><span class="lineno"> 2828</span>&#160;            lpszCharStr += 2;</div>
<div class="line"><a name="l02829"></a><span class="lineno"> 2829</span>&#160;        }</div>
<div class="line"><a name="l02830"></a><span class="lineno"> 2830</span>&#160;        <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02831"></a><span class="lineno"> 2831</span>&#160;            dwCharPosA--;</div>
<div class="line"><a name="l02832"></a><span class="lineno"> 2832</span>&#160;            lpszCharStr++;</div>
<div class="line"><a name="l02833"></a><span class="lineno"> 2833</span>&#160;        }</div>
<div class="line"><a name="l02834"></a><span class="lineno"> 2834</span>&#160;        dwCharPosW++;</div>
<div class="line"><a name="l02835"></a><span class="lineno"> 2835</span>&#160;    }</div>
<div class="line"><a name="l02836"></a><span class="lineno"> 2836</span>&#160; </div>
<div class="line"><a name="l02837"></a><span class="lineno"> 2837</span>&#160;    <span class="keywordflow">return</span> dwCharPosW;</div>
<div class="line"><a name="l02838"></a><span class="lineno"> 2838</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00281_source.html#l02385">InternalGetCompositionStringW()</a> , 以及 <a class="el" href="a00281_source.html#l00473">InternalSCS_CHANGECLAUSE()</a>.</p>

</div>
</div>
<a id="a60b682d5e1270211715dd542b85bc5e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60b682d5e1270211715dd542b85bc5e8">&#9670;&nbsp;</a></span>CalcCharacterPositionWtoA()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> CalcCharacterPositionWtoA </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwCharPosW</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPWSTR&#160;</td>
          <td class="paramname"><em>lpwszCharStr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00281_source.html">ctxtinfo.c</a> 第 <a class="el" href="a00281_source.html#l02850">2850</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02853"></a><span class="lineno"> 2853</span>&#160;{</div>
<div class="line"><a name="l02854"></a><span class="lineno"> 2854</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwCharPosA = 0;</div>
<div class="line"><a name="l02855"></a><span class="lineno"> 2855</span>&#160;    ULONG MultiByteSize;</div>
<div class="line"><a name="l02856"></a><span class="lineno"> 2856</span>&#160; </div>
<div class="line"><a name="l02857"></a><span class="lineno"> 2857</span>&#160;    <span class="keywordflow">while</span> (dwCharPosW != 0) {</div>
<div class="line"><a name="l02858"></a><span class="lineno"> 2858</span>&#160;        RtlUnicodeToMultiByteSize(&amp;MultiByteSize, lpwszCharStr, <span class="keyword">sizeof</span>(WCHAR));</div>
<div class="line"><a name="l02859"></a><span class="lineno"> 2859</span>&#160;        <span class="keywordflow">if</span> (MultiByteSize == 2) {</div>
<div class="line"><a name="l02860"></a><span class="lineno"> 2860</span>&#160;            dwCharPosA += 2;</div>
<div class="line"><a name="l02861"></a><span class="lineno"> 2861</span>&#160;        }</div>
<div class="line"><a name="l02862"></a><span class="lineno"> 2862</span>&#160;        <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02863"></a><span class="lineno"> 2863</span>&#160;            dwCharPosA++;</div>
<div class="line"><a name="l02864"></a><span class="lineno"> 2864</span>&#160;        }</div>
<div class="line"><a name="l02865"></a><span class="lineno"> 2865</span>&#160;        dwCharPosW--;</div>
<div class="line"><a name="l02866"></a><span class="lineno"> 2866</span>&#160;        lpwszCharStr++;</div>
<div class="line"><a name="l02867"></a><span class="lineno"> 2867</span>&#160;    }</div>
<div class="line"><a name="l02868"></a><span class="lineno"> 2868</span>&#160; </div>
<div class="line"><a name="l02869"></a><span class="lineno"> 2869</span>&#160;    <span class="keywordflow">return</span> dwCharPosA;</div>
<div class="line"><a name="l02870"></a><span class="lineno"> 2870</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00281_source.html#l02107">InternalGetCompositionStringA()</a> , 以及 <a class="el" href="a00281_source.html#l00473">InternalSCS_CHANGECLAUSE()</a>.</p>

</div>
</div>
<a id="aaeb810737d9648872bdb0e907b447dcb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaeb810737d9648872bdb0e907b447dcb">&#9670;&nbsp;</a></span>CreateInputContext()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL CreateInputContext </td>
          <td>(</td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hImc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hKL</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00278_source.html">context.c</a> 第 <a class="el" href="a00278_source.html#l00371">371</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;{</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;    <a class="code" href="a02061.html">PIMEDPI</a>            pImeDpi;</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    <a class="code" href="a02057.html">PCLIENTIMC</a>         pClientImc;</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>              dwPrivateDataSize;</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>              fdwInitConvMode = 0;    <span class="comment">// do it later</span></div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;    BOOL               fInitOpen = FALSE;      <span class="comment">// do it later</span></div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;    PINPUTCONTEXT      pInputContext;</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;    PCOMPOSITIONSTRING pCompStr;</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;    PCANDIDATEINFO     pCandInfo;</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;    PGUIDELINE         pGuideLine;</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;    <span class="keywordtype">int</span>                i;</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160; </div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;    pInputContext = <a class="code" href="a00311.html#a93ced286ed15ec806746defb9a3ed34d">ImmLockIMC</a>(hImc);</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    <span class="keywordflow">if</span> (!pInputContext) {</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;CreateContext: Lock hIMC %x failure&quot;</span>, hImc);</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;        <span class="keywordflow">goto</span> CrIMCLockErrOut;</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;    }</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160; </div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;<span class="comment">     * Initialize the member of INPUTCONTEXT</span></div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;    pInputContext-&gt;hCompStr = <a class="code" href="a00311.html#abfbbdf31138ad5f8b5049178ddbe235a">ImmCreateIMCC</a>(<span class="keyword">sizeof</span>(COMPOSITIONSTRING));</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;    <span class="keywordflow">if</span> (!pInputContext-&gt;hCompStr) {</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;CreateContext: Create hCompStr failure&quot;</span>);</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;        <span class="keywordflow">goto</span> CrIMCUnlockIMC;</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;    }</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160; </div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;    pCompStr = (PCOMPOSITIONSTRING)<a class="code" href="a00311.html#a02ff95b5201786b482e825455b481f51">ImmLockIMCC</a>(pInputContext-&gt;hCompStr);</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;    <span class="keywordflow">if</span> (!pCompStr) {</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>,</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;              <span class="stringliteral">&quot;CreateContext: Lock hCompStr %x failure&quot;</span>, pInputContext-&gt;hCompStr);</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;        <span class="keywordflow">goto</span> CrIMCFreeCompStr;</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;    }</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160; </div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;    pCompStr-&gt;dwSize = <span class="keyword">sizeof</span>(COMPOSITIONSTRING);</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;    <a class="code" href="a00311.html#a4363eede481a6941c0b440711a64442c">ImmUnlockIMCC</a>(pInputContext-&gt;hCompStr);</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160; </div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;    pInputContext-&gt;hCandInfo = <a class="code" href="a00311.html#abfbbdf31138ad5f8b5049178ddbe235a">ImmCreateIMCC</a>(<span class="keyword">sizeof</span>(CANDIDATEINFO));</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;    <span class="keywordflow">if</span> (!pInputContext-&gt;hCandInfo) {</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;CreateContext: Create hCandInfo failure&quot;</span>);</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        <span class="keywordflow">goto</span> CrIMCFreeCompStr;</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;    }</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160; </div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    pCandInfo = (PCANDIDATEINFO)<a class="code" href="a00311.html#a02ff95b5201786b482e825455b481f51">ImmLockIMCC</a>(pInputContext-&gt;hCandInfo);</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;    <span class="keywordflow">if</span> (!pCandInfo) {</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>,</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;              <span class="stringliteral">&quot;CreateContext: Lock hCandInfo %x failure&quot;</span>, pInputContext-&gt;hCandInfo);</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;        <span class="keywordflow">goto</span> CrIMCFreeCandInfo;</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;    }</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160; </div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;    pCandInfo-&gt;dwSize = <span class="keyword">sizeof</span>(CANDIDATEINFO);</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;    <a class="code" href="a00311.html#a4363eede481a6941c0b440711a64442c">ImmUnlockIMCC</a>(pInputContext-&gt;hCandInfo);</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160; </div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;    pInputContext-&gt;hGuideLine = <a class="code" href="a00311.html#abfbbdf31138ad5f8b5049178ddbe235a">ImmCreateIMCC</a>(<span class="keyword">sizeof</span>(GUIDELINE));</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;    <span class="keywordflow">if</span> (!pInputContext-&gt;hGuideLine) {</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;CreateContext: Create hGuideLine failure&quot;</span>);</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;        <span class="keywordflow">goto</span> CrIMCFreeCandInfo;</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;    }</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160; </div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;    pGuideLine = (PGUIDELINE)<a class="code" href="a00311.html#a02ff95b5201786b482e825455b481f51">ImmLockIMCC</a>(pInputContext-&gt;hGuideLine);</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;    <span class="keywordflow">if</span> (!pGuideLine) {</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>,</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;              <span class="stringliteral">&quot;CreateContext: Lock hGuideLine %x failure&quot;</span>, pInputContext-&gt;hGuideLine);</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;        <span class="keywordflow">goto</span> CrIMCFreeGuideLine;</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;    }</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160; </div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;    pGuideLine-&gt;dwSize = <span class="keyword">sizeof</span>(GUIDELINE);</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;    <a class="code" href="a00311.html#a4363eede481a6941c0b440711a64442c">ImmUnlockIMCC</a>(pInputContext-&gt;hGuideLine);</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160; </div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;    pInputContext-&gt;hMsgBuf = <a class="code" href="a00311.html#abfbbdf31138ad5f8b5049178ddbe235a">ImmCreateIMCC</a>(<span class="keyword">sizeof</span>(<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>));</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;    <span class="keywordflow">if</span> (!pInputContext-&gt;hMsgBuf) {</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;CreateContext: Create hMsgBuf failure&quot;</span>);</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;        <span class="keywordflow">goto</span> CrIMCFreeGuideLine;</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;    }</div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160; </div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;    pInputContext-&gt;dwNumMsgBuf = 0;</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;    pInputContext-&gt;fOpen = fInitOpen;</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;    pInputContext-&gt;fdwConversion = fdwInitConvMode;</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160; </div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; 4; i++) {</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;        pInputContext-&gt;cfCandForm[i].dwIndex = (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)(-1);</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;    }</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160; </div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;    pImeDpi = <a class="code" href="a00311.html#a321a0bacc1c67d1fefea199d0c6f4612">ImmLockImeDpi</a>(hKL);</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;    <span class="keywordflow">if</span> (pImeDpi != NULL) {</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;        <span class="keywordflow">if</span> ((pClientImc = <a class="code" href="a00311.html#abad0a50d57502d3e8ec482dd68997ad9">ImmLockClientImc</a>(hImc)) == NULL) {</div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;            <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;CreateContext: ImmLockClientImc() failure&quot;</span>);</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;            <a class="code" href="a00311.html#a476139459ee89728a91d341e1b72fb39">ImmUnlockImeDpi</a>(pImeDpi);</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;            <span class="keywordflow">goto</span> CrIMCFreeMsgBuf;</div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;        }</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160; </div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;<span class="comment">         * Unicode based IME expects an Uncode based input context.</span></div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;        <span class="keywordflow">if</span> (pImeDpi-&gt;<a class="code" href="a02061.html#acbd013b579c0b839717284fb40eb7fbe">ImeInfo</a>.fdwProperty &amp; IME_PROP_UNICODE)</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;            <a class="code" href="a00293.html#ac9a8b2084b3f85ce62924981d68efa1e">SetICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>);</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160; </div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;        <a class="code" href="a00311.html#a9488726a81b957d10975e322e12b13e0">ImmUnlockClientImc</a>(pClientImc);</div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160; </div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;        dwPrivateDataSize = pImeDpi-&gt;<a class="code" href="a02061.html#acbd013b579c0b839717284fb40eb7fbe">ImeInfo</a>.dwPrivateDataSize;</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;    }</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;        dwPrivateDataSize = <span class="keyword">sizeof</span>(<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>);</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;    }</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160; </div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;    pInputContext-&gt;hPrivate = <a class="code" href="a00311.html#abfbbdf31138ad5f8b5049178ddbe235a">ImmCreateIMCC</a>(dwPrivateDataSize);</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;    <span class="keywordflow">if</span> (!pInputContext-&gt;hPrivate) {</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;CreateContext: Create hPrivate failure&quot;</span>);</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;        <a class="code" href="a00311.html#a476139459ee89728a91d341e1b72fb39">ImmUnlockImeDpi</a>(pImeDpi);</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;        <span class="keywordflow">goto</span> CrIMCFreeMsgBuf;</div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;    }</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160; </div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;    <span class="keywordflow">if</span> (pImeDpi != NULL) {</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;        (*pImeDpi-&gt;<a class="code" href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">pfn</a>.<a class="code" href="a02065.html#a3e3d7e9fd44032fbdaaa80c04d2e8e78">ImeSelect</a>)(hImc, TRUE);</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;        <a class="code" href="a00311.html#a476139459ee89728a91d341e1b72fb39">ImmUnlockImeDpi</a>(pImeDpi);</div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;    }</div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160; </div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;    <a class="code" href="a00311.html#a5d94d0239203482be832b9a8e6f67754">ImmUnlockIMC</a>(hImc);</div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160; </div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;<span class="comment">     * context failure case</span></div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;CrIMCFreeMsgBuf:</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;    <a class="code" href="a00311.html#a36785d16e41db2e18eb9dee6c4566850">ImmDestroyIMCC</a>(pInputContext-&gt;hMsgBuf);</div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;CrIMCFreeGuideLine:</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;    <a class="code" href="a00311.html#a36785d16e41db2e18eb9dee6c4566850">ImmDestroyIMCC</a>(pInputContext-&gt;hGuideLine);</div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;CrIMCFreeCandInfo:</div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;    <a class="code" href="a00311.html#a36785d16e41db2e18eb9dee6c4566850">ImmDestroyIMCC</a>(pInputContext-&gt;hCandInfo);</div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;CrIMCFreeCompStr:</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;    <a class="code" href="a00311.html#a36785d16e41db2e18eb9dee6c4566850">ImmDestroyIMCC</a>(pInputContext-&gt;hCompStr);</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;CrIMCUnlockIMC:</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;    <a class="code" href="a00311.html#a5d94d0239203482be832b9a8e6f67754">ImmUnlockIMC</a>(hImc);</div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;CrIMCLockErrOut:</div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;    <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00341_source.html#l00029">IMCF_UNICODE</a>, <a class="el" href="a00344_source.html#l00067">tagIMEDPI::ImeInfo</a>, <a class="el" href="a00344_source.html#l00082">tagIMEDPI::_tagImeFunctions::ImeSelect</a>, <a class="el" href="a00311_source.html#l00355">ImmCreateIMCC()</a>, <a class="el" href="a00311_source.html#l00373">ImmDestroyIMCC()</a>, <a class="el" href="a00311_source.html#l00570">ImmLockClientImc()</a>, <a class="el" href="a00311_source.html#l00243">ImmLockIMC()</a>, <a class="el" href="a00311_source.html#l00386">ImmLockIMCC()</a>, <a class="el" href="a00311_source.html#l00649">ImmLockImeDpi()</a>, <a class="el" href="a00311_source.html#l00623">ImmUnlockClientImc()</a>, <a class="el" href="a00311_source.html#l00302">ImmUnlockIMC()</a>, <a class="el" href="a00311_source.html#l00399">ImmUnlockIMCC()</a>, <a class="el" href="a00311_source.html#l00678">ImmUnlockImeDpi()</a>, <a class="el" href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">tagIMEDPI::pfn</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00131">RIPMSG0</a>, <a class="el" href="a00371_source.html#l00132">RIPMSG1</a>, <a class="el" href="a00293_source.html#l00132">SetICF</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00311_source.html#l00243">ImmLockIMC()</a>.</p>

</div>
</div>
<a id="a7745c0c95ee0276623fda144302b43b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7745c0c95ee0276623fda144302b43b2">&#9670;&nbsp;</a></span>DestroyInputContext()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL DestroyInputContext </td>
          <td>(</td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hImc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hKL</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00278_source.html">context.c</a> 第 <a class="el" href="a00278_source.html#l00518">518</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;{</div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;    PINPUTCONTEXT pInputContext;</div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;    <a class="code" href="a02061.html">PIMEDPI</a>       pImeDpi;</div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;    <a class="code" href="a02589.html">PIMC</a>          pImc;</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;    <a class="code" href="a02057.html">PCLIENTIMC</a>    pClientImc;</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160; </div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;    <span class="keywordflow">if</span> (hImc == <a class="code" href="a00341.html#a93b9a7f7677934defcd03ca2c4d41ffa">NULL_HIMC</a>)</div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160; </div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;    pImc = <a class="code" href="a00365.html#adcc97c154408fd5498551b3d94332c1b">HMValidateHandle</a>((HANDLE)hImc, TYPE_INPUTCONTEXT);</div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160; </div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;<span class="comment">     * Cannot destroy input context from other thread.</span></div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;    <span class="keywordflow">if</span> (pImc == NULL || GETPTI(pImc) != <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>())</div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160; </div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;<span class="comment">     * We are destroying this hImc and we don&#39;t bother</span></div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;<span class="comment">     * to lock its pClientImc.</span></div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;    pClientImc = (<a class="code" href="a00344.html#a013cc3374cd90a89e95081008e1de08b">PCLIENTIMC</a>)pImc-&gt;<a class="code" href="a02589.html#a85828ff3dc4186af53455b2aefe48596">dwClientImcData</a>;</div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;    if (pClientImc == NULL) {</div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;<span class="comment">         * Client side Imc has not been initialzed yet.</span></div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;<span class="comment">         * We simply destroy this input context from kernel.</span></div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00341.html#a9c78c76b68e17f7c3ef064c07465f071">NtUserDestroyInputContext</a>(hImc);</div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;    }</div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160; </div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#a432037388ec41b1fb8f299bdda2ea394">IMCF_DEFAULTIMC</a>)) {</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;<span class="comment">         * Cannot destroy default input context.</span></div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;    }</div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160; </div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#aa4eec6a54814a3fcdca0f205f002e58e">IMCF_INDESTROY</a>)) {</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;<span class="comment">         * This hImc is being destroyed. Returns as success.</span></div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;    }</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160; </div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;    pInputContext = <a class="code" href="a00311.html#a93ced286ed15ec806746defb9a3ed34d">ImmLockIMC</a>(hImc);</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;    <span class="keywordflow">if</span> (!pInputContext) {</div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;DestroyContext: Lock hImc %x failure&quot;</span>, hImc);</div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;    }</div>
<div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160; </div>
<div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;    pImeDpi = <a class="code" href="a00311.html#a321a0bacc1c67d1fefea199d0c6f4612">ImmLockImeDpi</a>(hKL);</div>
<div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;    <span class="keywordflow">if</span> (pImeDpi != NULL) {</div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;        (*pImeDpi-&gt;<a class="code" href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">pfn</a>.<a class="code" href="a02065.html#a3e3d7e9fd44032fbdaaa80c04d2e8e78">ImeSelect</a>)(hImc, FALSE);</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;        <a class="code" href="a00311.html#a476139459ee89728a91d341e1b72fb39">ImmUnlockImeDpi</a>(pImeDpi);</div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;    }</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160; </div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;    <a class="code" href="a00293.html#ac9a8b2084b3f85ce62924981d68efa1e">SetICF</a>(pClientImc, <a class="code" href="a00341.html#aa4eec6a54814a3fcdca0f205f002e58e">IMCF_INDESTROY</a>);</div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160; </div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;    <a class="code" href="a00311.html#a36785d16e41db2e18eb9dee6c4566850">ImmDestroyIMCC</a>(pInputContext-&gt;hPrivate);</div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;    <a class="code" href="a00311.html#a36785d16e41db2e18eb9dee6c4566850">ImmDestroyIMCC</a>(pInputContext-&gt;hMsgBuf);</div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;    <a class="code" href="a00311.html#a36785d16e41db2e18eb9dee6c4566850">ImmDestroyIMCC</a>(pInputContext-&gt;hGuideLine);</div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;    <a class="code" href="a00311.html#a36785d16e41db2e18eb9dee6c4566850">ImmDestroyIMCC</a>(pInputContext-&gt;hCandInfo);</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;    <a class="code" href="a00311.html#a36785d16e41db2e18eb9dee6c4566850">ImmDestroyIMCC</a>(pInputContext-&gt;hCompStr);</div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160; </div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;    <a class="code" href="a00311.html#a5d94d0239203482be832b9a8e6f67754">ImmUnlockIMC</a>(hImc);</div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160; </div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00341.html#a9c78c76b68e17f7c3ef064c07465f071">NtUserDestroyInputContext</a>(hImc);</div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00365_source.html#l01461">tagIMC::dwClientImcData</a>, <a class="el" href="a03752_source.html#l00232">HMValidateHandle()</a>, <a class="el" href="a00341_source.html#l00037">IMCF_DEFAULTIMC</a>, <a class="el" href="a00341_source.html#l00035">IMCF_INDESTROY</a>, <a class="el" href="a00344_source.html#l00082">tagIMEDPI::_tagImeFunctions::ImeSelect</a>, <a class="el" href="a00311_source.html#l00373">ImmDestroyIMCC()</a>, <a class="el" href="a00311_source.html#l00243">ImmLockIMC()</a>, <a class="el" href="a00311_source.html#l00649">ImmLockImeDpi()</a>, <a class="el" href="a00311_source.html#l00302">ImmUnlockIMC()</a>, <a class="el" href="a00311_source.html#l00678">ImmUnlockImeDpi()</a>, <a class="el" href="a00341.html#a9c78c76b68e17f7c3ef064c07465f071">NtUserDestroyInputContext()</a>, <a class="el" href="a00341_source.html#l00023">NULL_HIMC</a>, <a class="el" href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">tagIMEDPI::pfn</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00132">RIPMSG1</a>, <a class="el" href="a00293_source.html#l00132">SetICF</a> , 以及 <a class="el" href="a00293_source.html#l00136">TestICF</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00278_source.html#l00092">ImmDestroyContext()</a>.</p>

</div>
</div>
<a id="a86710598a5f27f0601d453cdbb0104f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86710598a5f27f0601d453cdbb0104f4">&#9670;&nbsp;</a></span>EnumInputContext()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL EnumInputContext </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>idThread</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00344.html#a23b11b6633c37c3ff8b389b1a339b9ca">IMCENUMPROC</a>&#160;</td>
          <td class="paramname"><em>lpfn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00278_source.html">context.c</a> 第 <a class="el" href="a00278_source.html#l00786">786</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;{</div>
<div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> i;</div>
<div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> cHimc;</div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;    HIMC *phimcT;</div>
<div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;    HIMC *phimcFirst;</div>
<div class="line"><a name="l00795"></a><span class="lineno">  795</span>&#160;    BOOL fSuccess = TRUE;</div>
<div class="line"><a name="l00796"></a><span class="lineno">  796</span>&#160; </div>
<div class="line"><a name="l00797"></a><span class="lineno">  797</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00798"></a><span class="lineno">  798</span>&#160;<span class="comment">     * Get the himc list.  It is returned in a block of memory</span></div>
<div class="line"><a name="l00799"></a><span class="lineno">  799</span>&#160;<span class="comment">     * allocated with ImmLocalAlloc.</span></div>
<div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00801"></a><span class="lineno">  801</span>&#160;    <span class="keywordflow">if</span> ((cHimc = <a class="code" href="a00278.html#a0454939fd666a799e492c4dd53a6f322">BuildHimcList</a>(idThread, &amp;phimcFirst)) == 0) {</div>
<div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160;    }</div>
<div class="line"><a name="l00804"></a><span class="lineno">  804</span>&#160; </div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160;<span class="comment">     * Loop through the input contexts, call the function pointer back for</span></div>
<div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160;<span class="comment">     * each one. End loop if either FALSE is returned or the end-of-list is</span></div>
<div class="line"><a name="l00808"></a><span class="lineno">  808</span>&#160;<span class="comment">     * reached.</span></div>
<div class="line"><a name="l00809"></a><span class="lineno">  809</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00810"></a><span class="lineno">  810</span>&#160;    phimcT = phimcFirst;</div>
<div class="line"><a name="l00811"></a><span class="lineno">  811</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; cHimc; i++) {</div>
<div class="line"><a name="l00812"></a><span class="lineno">  812</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a00293.html#a315fa72a2df1ad8c8bbb775c1c36a47d">RevalidateHimc</a>(*phimcT)) {</div>
<div class="line"><a name="l00813"></a><span class="lineno">  813</span>&#160;            <span class="keywordflow">if</span> (!(fSuccess = (*lpfn)(*phimcT, lParam)))</div>
<div class="line"><a name="l00814"></a><span class="lineno">  814</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00815"></a><span class="lineno">  815</span>&#160;        }</div>
<div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;        phimcT++;</div>
<div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160;    }</div>
<div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160; </div>
<div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160;<span class="comment">     * Free up buffer and return status - TRUE if entire list was enumerated,</span></div>
<div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;<span class="comment">     * FALSE otherwise.</span></div>
<div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160;    <a class="code" href="a00293.html#ae6ef91973c6a6f95f9b95f0c2a7c3315">ImmLocalFree</a>(phimcFirst);</div>
<div class="line"><a name="l00824"></a><span class="lineno">  824</span>&#160; </div>
<div class="line"><a name="l00825"></a><span class="lineno">  825</span>&#160;    <span class="keywordflow">return</span> fSuccess;</div>
<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00278_source.html#l00835">BuildHimcList()</a>, <a class="el" href="a00293_source.html#l00107">ImmLocalFree</a>, <a class="el" href="a00293_source.html#l00096">RevalidateHimc</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00296_source.html#l00316">ImmActivateLayout()</a>.</p>

</div>
</div>
<a id="a9a024f6c368bd1baf2f62fe75c761ca7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a024f6c368bd1baf2f62fe75c761ca7">&#9670;&nbsp;</a></span>EnumRegisterWordProcA()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> CALLBACK EnumRegisterWordProcA </td>
          <td>(</td>
          <td class="paramtype">LPCSTR&#160;</td>
          <td class="paramname"><em>lpszReading</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwStyle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPCSTR&#160;</td>
          <td class="paramname"><em>lpszString</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00293.html#a08fd4a740b39f257dc2fa63f9ce7ab92">PENUMREGWORDDATA</a>&#160;</td>
          <td class="paramname"><em>pEnumRegWordData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00314_source.html">regword.c</a> 第 <a class="el" href="a00314_source.html#l00741">741</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;{</div>
<div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;    LPWSTR lpwszReading;</div>
<div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160;    LPWSTR lpwszString;</div>
<div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>    cchReading;</div>
<div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>    cchString;</div>
<div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>    i;</div>
<div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>   uRet;</div>
<div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160; </div>
<div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160;    <a class="code" href="a00293.html#a4a8d67a2c4cc9ce4dd6aabfd9e460635">ImmAssert</a>(pEnumRegWordData != NULL);</div>
<div class="line"><a name="l00755"></a><span class="lineno">  755</span>&#160; </div>
<div class="line"><a name="l00756"></a><span class="lineno">  756</span>&#160;    <span class="keywordflow">if</span> (lpszReading != NULL) {</div>
<div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160;        cchReading = strlen(lpszReading) + <span class="keyword">sizeof</span>(<a class="code" href="a00953.html#aebb9e13210d88d43e32e735ada43a425">CHAR</a>);</div>
<div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;        lpwszReading = <a class="code" href="a00293.html#a3d753f884cab418538a34030823aa1d0">ImmLocalAlloc</a>(0, cchReading * <span class="keyword">sizeof</span>(WCHAR));</div>
<div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160;        <span class="keywordflow">if</span> (lpwszReading == NULL) {</div>
<div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;            <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;EnumRegisterWordProcA: memory failure.&quot;</span>);</div>
<div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;            <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;        }</div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160; </div>
<div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;        i = <a class="code" href="a00941.html#ab5fefa29de8bde48a74efa8d838bf2d7">MultiByteToWideChar</a>(CP_ACP,</div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;                                (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)MB_PRECOMPOSED,</div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;                                (LPSTR)lpszReading,              <span class="comment">// src</span></div>
<div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;                                (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)strlen(lpszReading),</div>
<div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;                                (LPWSTR)lpwszReading,            <span class="comment">// dest</span></div>
<div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;                                cchReading);</div>
<div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160;        lpwszReading[i] = L<span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;    }</div>
<div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;        lpwszReading = NULL;</div>
<div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;    }</div>
<div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160; </div>
<div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;    <span class="keywordflow">if</span> (lpszString != NULL) {</div>
<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;        cchString  = strlen(lpszString) + <span class="keyword">sizeof</span>(<a class="code" href="a00953.html#aebb9e13210d88d43e32e735ada43a425">CHAR</a>);</div>
<div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;        lpwszString = <a class="code" href="a00293.html#a3d753f884cab418538a34030823aa1d0">ImmLocalAlloc</a>(0, cchString * <span class="keyword">sizeof</span>(WCHAR));</div>
<div class="line"><a name="l00779"></a><span class="lineno">  779</span>&#160;        <span class="keywordflow">if</span> (lpwszString == NULL) {</div>
<div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160;            <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;EnumRegisterWordProcA: memory failure.&quot;</span>);</div>
<div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160;            <span class="keywordflow">if</span> (lpwszReading != NULL)</div>
<div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160;                <a class="code" href="a00293.html#ae6ef91973c6a6f95f9b95f0c2a7c3315">ImmLocalFree</a>(lpwszReading);</div>
<div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;            <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160;        }</div>
<div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160; </div>
<div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;        i = <a class="code" href="a00941.html#ab5fefa29de8bde48a74efa8d838bf2d7">MultiByteToWideChar</a>(CP_ACP,</div>
<div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;                                (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)MB_PRECOMPOSED,</div>
<div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160;                                (LPSTR)lpszString,              <span class="comment">// src</span></div>
<div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160;                                (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)strlen(lpszString),</div>
<div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;                                (LPWSTR)lpwszString,            <span class="comment">// dest</span></div>
<div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;                                cchString);</div>
<div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160;        lpwszString[i] = L<span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;    }</div>
<div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00795"></a><span class="lineno">  795</span>&#160;        lpwszString = NULL;</div>
<div class="line"><a name="l00796"></a><span class="lineno">  796</span>&#160;    }</div>
<div class="line"><a name="l00797"></a><span class="lineno">  797</span>&#160; </div>
<div class="line"><a name="l00798"></a><span class="lineno">  798</span>&#160;    uRet = (*pEnumRegWordData-&gt;<a class="code" href="a01973.html#a4c53e4b03a8336b425386bfddf5b4ac1">lpfn</a>.<a class="code" href="a01973.html#aba3ed475c494d5a2959551dbeb945df7">w</a>)(lpwszReading, dwStyle,</div>
<div class="line"><a name="l00799"></a><span class="lineno">  799</span>&#160;                            lpwszString, pEnumRegWordData-&gt;<a class="code" href="a01973.html#af043c385dbae955385e412367960567e">lpData</a>);</div>
<div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160; </div>
<div class="line"><a name="l00801"></a><span class="lineno">  801</span>&#160;    <span class="keywordflow">if</span> (lpwszReading != NULL)</div>
<div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;        <a class="code" href="a00293.html#ae6ef91973c6a6f95f9b95f0c2a7c3315">ImmLocalFree</a>(lpwszReading);</div>
<div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160; </div>
<div class="line"><a name="l00804"></a><span class="lineno">  804</span>&#160;    <span class="keywordflow">if</span> (lpwszString != NULL)</div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;        <a class="code" href="a00293.html#ae6ef91973c6a6f95f9b95f0c2a7c3315">ImmLocalFree</a>(lpwszString);</div>
<div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160; </div>
<div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160;    <span class="keywordflow">return</span> uRet;</div>
<div class="line"><a name="l00808"></a><span class="lineno">  808</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00293_source.html#l00057">ImmAssert</a>, <a class="el" href="a00293_source.html#l00105">ImmLocalAlloc</a>, <a class="el" href="a00293_source.html#l00107">ImmLocalFree</a>, <a class="el" href="a00293_source.html#l00054">_ENUMREGWORDDATA::lpData</a>, <a class="el" href="a01973.html#a4c53e4b03a8336b425386bfddf5b4ac1">_ENUMREGWORDDATA::lpfn</a>, <a class="el" href="a00941.html#ab5fefa29de8bde48a74efa8d838bf2d7">MultiByteToWideChar()</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00131">RIPMSG0</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a> , 以及 <a class="el" href="a00293_source.html#l00051">_ENUMREGWORDDATA::w</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00314_source.html#l00635">ImmEnumRegisterWordW()</a>.</p>

</div>
</div>
<a id="aa0fbeccc0a4812abbe4f33619b903a73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa0fbeccc0a4812abbe4f33619b903a73">&#9670;&nbsp;</a></span>EnumRegisterWordProcW()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> CALLBACK EnumRegisterWordProcW </td>
          <td>(</td>
          <td class="paramtype">LPCWSTR&#160;</td>
          <td class="paramname"><em>lpwszReading</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwStyle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPCWSTR&#160;</td>
          <td class="paramname"><em>lpwszString</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00293.html#a08fd4a740b39f257dc2fa63f9ce7ab92">PENUMREGWORDDATA</a>&#160;</td>
          <td class="paramname"><em>pEnumRegWordData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00314_source.html">regword.c</a> 第 <a class="el" href="a00314_source.html#l00811">811</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;{</div>
<div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160;    LPSTR lpszReading;</div>
<div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160;    LPSTR lpszString;</div>
<div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>   cchReading;</div>
<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>   cchString;</div>
<div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>   i;</div>
<div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>  uRet;</div>
<div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160; </div>
<div class="line"><a name="l00824"></a><span class="lineno">  824</span>&#160;    <a class="code" href="a00293.html#a4a8d67a2c4cc9ce4dd6aabfd9e460635">ImmAssert</a>(pEnumRegWordData != NULL);</div>
<div class="line"><a name="l00825"></a><span class="lineno">  825</span>&#160; </div>
<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;    <span class="keywordflow">if</span> (lpwszReading != NULL) {</div>
<div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;        cchReading = (wcslen(lpwszReading) + 1) * <span class="keyword">sizeof</span>(WCHAR);</div>
<div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160;        lpszReading = <a class="code" href="a00293.html#a3d753f884cab418538a34030823aa1d0">ImmLocalAlloc</a>(0, cchReading);</div>
<div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160;        <span class="keywordflow">if</span> (lpszReading == NULL) {</div>
<div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160;            <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;ImmRegisterWordW: memory failure.&quot;</span>);</div>
<div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160;            <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00832"></a><span class="lineno">  832</span>&#160;        }</div>
<div class="line"><a name="l00833"></a><span class="lineno">  833</span>&#160; </div>
<div class="line"><a name="l00834"></a><span class="lineno">  834</span>&#160;        i = <a class="code" href="a00941.html#aaf8b3ae5e2b40b6de6cc9377d53baa45">WideCharToMultiByte</a>( CP_ACP,</div>
<div class="line"><a name="l00835"></a><span class="lineno">  835</span>&#160;                                (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)0,</div>
<div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;                                (LPWSTR)lpwszReading,          <span class="comment">// src</span></div>
<div class="line"><a name="l00837"></a><span class="lineno">  837</span>&#160;                                (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)wcslen(lpwszReading),</div>
<div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160;                                (LPSTR)lpszReading,            <span class="comment">// dest</span></div>
<div class="line"><a name="l00839"></a><span class="lineno">  839</span>&#160;                                cchReading,</div>
<div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160;                                (LPSTR)NULL,</div>
<div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160;                                (LPBOOL)NULL);</div>
<div class="line"><a name="l00842"></a><span class="lineno">  842</span>&#160;        lpszReading[i] = <span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l00843"></a><span class="lineno">  843</span>&#160;    }</div>
<div class="line"><a name="l00844"></a><span class="lineno">  844</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00845"></a><span class="lineno">  845</span>&#160;        lpszReading = NULL;</div>
<div class="line"><a name="l00846"></a><span class="lineno">  846</span>&#160;    }</div>
<div class="line"><a name="l00847"></a><span class="lineno">  847</span>&#160; </div>
<div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160;    <span class="keywordflow">if</span> (lpwszString != NULL) {</div>
<div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;        cchString  = (wcslen(lpwszString) + 1) * <span class="keyword">sizeof</span>(WCHAR);</div>
<div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;        lpszString = <a class="code" href="a00293.html#a3d753f884cab418538a34030823aa1d0">ImmLocalAlloc</a>(0, cchString);</div>
<div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160;        <span class="keywordflow">if</span> (lpszString == NULL) {</div>
<div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;            <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;ImmRegisterWordW: memory failure.&quot;</span>);</div>
<div class="line"><a name="l00853"></a><span class="lineno">  853</span>&#160;            <span class="keywordflow">if</span> (lpszReading != NULL)</div>
<div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160;                <a class="code" href="a00293.html#ae6ef91973c6a6f95f9b95f0c2a7c3315">ImmLocalFree</a>(lpszReading);</div>
<div class="line"><a name="l00855"></a><span class="lineno">  855</span>&#160;            <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00856"></a><span class="lineno">  856</span>&#160;        }</div>
<div class="line"><a name="l00857"></a><span class="lineno">  857</span>&#160; </div>
<div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160;        i = <a class="code" href="a00941.html#aaf8b3ae5e2b40b6de6cc9377d53baa45">WideCharToMultiByte</a>( CP_ACP,</div>
<div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160;                                (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)0,</div>
<div class="line"><a name="l00860"></a><span class="lineno">  860</span>&#160;                                (LPWSTR)lpwszString,          <span class="comment">// src</span></div>
<div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160;                                (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)wcslen(lpwszString),</div>
<div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;                                (LPSTR)lpszString,            <span class="comment">// dest</span></div>
<div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160;                                cchString,</div>
<div class="line"><a name="l00864"></a><span class="lineno">  864</span>&#160;                                (LPSTR)NULL,</div>
<div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160;                                (LPBOOL)NULL);</div>
<div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160;        lpszString[i] = <span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l00867"></a><span class="lineno">  867</span>&#160;    }</div>
<div class="line"><a name="l00868"></a><span class="lineno">  868</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160;        lpszString = NULL;</div>
<div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;    }</div>
<div class="line"><a name="l00871"></a><span class="lineno">  871</span>&#160; </div>
<div class="line"><a name="l00872"></a><span class="lineno">  872</span>&#160;    uRet = (*pEnumRegWordData-&gt;<a class="code" href="a01973.html#a4c53e4b03a8336b425386bfddf5b4ac1">lpfn</a>.<a class="code" href="a01973.html#a0764aeffdbd1dfa62f71561cb68bc1cd">a</a>)(lpszReading, dwStyle,</div>
<div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160;                            lpszString, pEnumRegWordData-&gt;<a class="code" href="a01973.html#af043c385dbae955385e412367960567e">lpData</a>);</div>
<div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160; </div>
<div class="line"><a name="l00875"></a><span class="lineno">  875</span>&#160;    <span class="keywordflow">if</span> (lpszReading != NULL)</div>
<div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;        <a class="code" href="a00293.html#ae6ef91973c6a6f95f9b95f0c2a7c3315">ImmLocalFree</a>(lpszReading);</div>
<div class="line"><a name="l00877"></a><span class="lineno">  877</span>&#160; </div>
<div class="line"><a name="l00878"></a><span class="lineno">  878</span>&#160;    <span class="keywordflow">if</span> (lpszString != NULL)</div>
<div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160;        <a class="code" href="a00293.html#ae6ef91973c6a6f95f9b95f0c2a7c3315">ImmLocalFree</a>(lpszString);</div>
<div class="line"><a name="l00880"></a><span class="lineno">  880</span>&#160; </div>
<div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160;    <span class="keywordflow">return</span> uRet;</div>
<div class="line"><a name="l00882"></a><span class="lineno">  882</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00293_source.html#l00052">_ENUMREGWORDDATA::a</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00293_source.html#l00057">ImmAssert</a>, <a class="el" href="a00293_source.html#l00105">ImmLocalAlloc</a>, <a class="el" href="a00293_source.html#l00107">ImmLocalFree</a>, <a class="el" href="a00293_source.html#l00054">_ENUMREGWORDDATA::lpData</a>, <a class="el" href="a01973.html#a4c53e4b03a8336b425386bfddf5b4ac1">_ENUMREGWORDDATA::lpfn</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00131">RIPMSG0</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a> , 以及 <a class="el" href="a00941.html#aaf8b3ae5e2b40b6de6cc9377d53baa45">WideCharToMultiByte()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00314_source.html#l00533">ImmEnumRegisterWordA()</a>.</p>

</div>
</div>
<a id="affeb9a1f3463582f4269fc771b6eea01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#affeb9a1f3463582f4269fc771b6eea01">&#9670;&nbsp;</a></span>FindOrLoadImeDpi()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00344.html#a62ef1d2de4f5999445749347090577a3">PIMEDPI</a> FindOrLoadImeDpi </td>
          <td>(</td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hKL</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00296_source.html">immime.c</a> 第 <a class="el" href="a00296_source.html#l00204">204</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;{</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <a class="code" href="a02061.html">PIMEDPI</a>        pImeDpi, pTmpImeDpi;</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    <a class="code" href="a02053.html">IMEINFOEX</a>      iiex;</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160; </div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;<span class="comment">     * Non IME based keyboard layout doesn&#39;t have IMEDPI.</span></div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    <span class="keywordflow">if</span> (!<a class="code" href="a00341.html#a9d87ba42d1eed654ee04b018be9ea0b4">IS_IME_KBDLAYOUT</a>(hKL))</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;        <span class="keywordflow">return</span> (<a class="code" href="a02061.html">PIMEDPI</a>)NULL;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160; </div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    pImeDpi = <a class="code" href="a00311.html#a321a0bacc1c67d1fefea199d0c6f4612">ImmLockImeDpi</a>(hKL);</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160; </div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    <span class="keywordflow">if</span> (pImeDpi == NULL) {</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;<span class="comment">         * This process hasn&#39;t load up the specified IME based layout.</span></div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="comment">         * Query the IME information and load it up now.</span></div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;        <span class="keywordflow">if</span> (!<a class="code" href="a00311.html#adbb6236f980a6faaacadbe634b25bbe2">ImmGetImeInfoEx</a>(&amp;iiex, <a class="code" href="a00341.html#ac899aa88e02c855ed80c85ccef785080a8f18818e788e4836e1e1a7bedad609f3">ImeInfoExKeyboardLayout</a>, &amp;hKL)) {</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;            <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>,</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;                  <span class="stringliteral">&quot;FindOrLoadImeDpi: ImmGetImeInfoEx(%lx) failed&quot;</span>, hKL);</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;            <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        }</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160; </div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;<span class="comment">         * Win95 behaviour: If there was an IME load error for this layout,</span></div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;<span class="comment">         * further attempt to load the same IME layout will be rejected.</span></div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;        <span class="keywordflow">if</span> (iiex.<a class="code" href="a02053.html#aca1095cbcd4e269fd414475cea47a463">fLoadFlag</a> == <a class="code" href="a00341.html#aab2b0794609c3d5c18992125e5950697">IMEF_LOADERROR</a>)</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;            <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160; </div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;<span class="comment">         * Allocate a new IMEDPI for this layout.</span></div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;        pImeDpi = (<a class="code" href="a00344.html#a62ef1d2de4f5999445749347090577a3">PIMEDPI</a>)<a class="code" href="a00293.html#a3d753f884cab418538a34030823aa1d0">ImmLocalAlloc</a>(HEAP_ZERO_MEMORY, <span class="keyword">sizeof</span>(<a class="code" href="a02061.html">IMEDPI</a>));</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;        <span class="keywordflow">if</span> (pImeDpi == NULL)</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;            <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160; </div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;        <span class="keywordflow">if</span> (!<a class="code" href="a00296.html#a082414a7811f5933c662d680f291cde4">LoadIME</a>(&amp;iiex, pImeDpi)) {</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;            LocalFree(pImeDpi);</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;            <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;        }</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160; </div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;        pImeDpi-&gt;<a class="code" href="a02061.html#a193b0c2e24d821084e237bb1c54e8cc4">hKL</a> = hKL;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        pImeDpi-&gt;<a class="code" href="a02061.html#a58447d6039150bd4b98c6a9b074d3f59">cLock</a>++;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160; </div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;<span class="comment">         * Link in the newly allocated entry.</span></div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        RtlEnterCriticalSection(&amp;<a class="code" href="a03254.html#ab7ac3db019078f20fcf82850b103d097">gcsImeDpi</a>);</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160; </div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;<span class="comment">         * Serach the gpImeDpi list again and discard this</span></div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<span class="comment">         * pImeDpi if other thread has updated the list for</span></div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;<span class="comment">         * the same layout while we leave the critical section.</span></div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;        pTmpImeDpi = <a class="code" href="a00311.html#a321a0bacc1c67d1fefea199d0c6f4612">ImmLockImeDpi</a>(hKL);</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160; </div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;        <span class="keywordflow">if</span> (pTmpImeDpi == NULL) {</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;<span class="comment">             * Update the global list for this new pImeDpi entry.</span></div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;            pImeDpi-&gt;<a class="code" href="a02061.html#a54a30d705640d134c1e94e8b66fd0325">pNext</a> = <a class="code" href="a03254.html#ad8944ae644d08d76a5bac7a209743293">gpImeDpi</a>;</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;            <a class="code" href="a03254.html#ad8944ae644d08d76a5bac7a209743293">gpImeDpi</a> = pImeDpi;</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;            RtlLeaveCriticalSection(&amp;<a class="code" href="a03254.html#ab7ac3db019078f20fcf82850b103d097">gcsImeDpi</a>);</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;        }</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;        <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;<span class="comment">             * The same IME has been loaded, discard this extra entry.</span></div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;            RtlLeaveCriticalSection(&amp;<a class="code" href="a03254.html#ab7ac3db019078f20fcf82850b103d097">gcsImeDpi</a>);</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;            <a class="code" href="a00296.html#aeaaca4dc06f37c780d48a7039c0ad6ba">UnloadIME</a>(pImeDpi, FALSE);</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;            <a class="code" href="a00293.html#ae6ef91973c6a6f95f9b95f0c2a7c3315">ImmLocalFree</a>(pImeDpi);</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;            pImeDpi = pTmpImeDpi;</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;        }</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    }</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160; </div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;    <span class="keywordflow">return</span> pImeDpi;</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00344_source.html#l00069">tagIMEDPI::cLock</a>, <a class="el" href="a00341_source.html#l00087">tagIMEINFOEX::fLoadFlag</a>, <a class="el" href="a03254_source.html#l00020">gcsImeDpi</a>, <a class="el" href="a03254_source.html#l00019">gpImeDpi</a>, <a class="el" href="a00344_source.html#l00066">tagIMEDPI::hKL</a>, <a class="el" href="a00341_source.html#l00051">IMEF_LOADERROR</a>, <a class="el" href="a00341_source.html#l00133">ImeInfoExKeyboardLayout</a>, <a class="el" href="a00311_source.html#l00697">ImmGetImeInfoEx()</a>, <a class="el" href="a00293_source.html#l00105">ImmLocalAlloc</a>, <a class="el" href="a00293_source.html#l00107">ImmLocalFree</a>, <a class="el" href="a00311_source.html#l00649">ImmLockImeDpi()</a>, <a class="el" href="a00341_source.html#l00045">IS_IME_KBDLAYOUT</a>, <a class="el" href="a00296_source.html#l00097">LoadIME()</a>, <a class="el" href="a00344_source.html#l00064">tagIMEDPI::pNext</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00132">RIPMSG1</a> , 以及 <a class="el" href="a00296_source.html#l00179">UnloadIME()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00296_source.html#l00386">ImmConfigureIMEA()</a>, <a class="el" href="a00296_source.html#l00514">ImmConfigureIMEW()</a>, <a class="el" href="a00314_source.html#l00533">ImmEnumRegisterWordA()</a>, <a class="el" href="a00314_source.html#l00635">ImmEnumRegisterWordW()</a>, <a class="el" href="a00296_source.html#l00652">ImmEscapeA()</a>, <a class="el" href="a00296_source.html#l00801">ImmEscapeW()</a>, <a class="el" href="a00281_source.html#l01633">ImmGetConversionListA()</a>, <a class="el" href="a00281_source.html#l01753">ImmGetConversionListW()</a>, <a class="el" href="a00308_source.html#l00181">ImmGetProperty()</a>, <a class="el" href="a00314_source.html#l00397">ImmGetRegisterWordStyleA()</a>, <a class="el" href="a00314_source.html#l00466">ImmGetRegisterWordStyleW()</a>, <a class="el" href="a00296_source.html#l00303">ImmLoadIME()</a>, <a class="el" href="a00314_source.html#l00025">ImmRegisterWordA()</a>, <a class="el" href="a00314_source.html#l00116">ImmRegisterWordW()</a>, <a class="el" href="a00314_source.html#l00211">ImmUnregisterWordA()</a> , 以及 <a class="el" href="a00314_source.html#l00302">ImmUnregisterWordW()</a>.</p>

</div>
</div>
<a id="aecc706c92f23c31fd53c76cac08492b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aecc706c92f23c31fd53c76cac08492b4">&#9670;&nbsp;</a></span>HotKeyIDDispatcher()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL HotKeyIDDispatcher </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hWnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hImc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hKL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwHotKeyID</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00591">591</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;{</div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160; </div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;    <span class="keywordflow">switch</span> ( dwHotKeyID ) {</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;    <span class="keywordflow">case</span> IME_CHOTKEY_IME_NONIME_TOGGLE:</div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;    <span class="keywordflow">case</span> IME_THOTKEY_IME_NONIME_TOGGLE:</div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00290.html#aec2ee4d8404100149f7614f5d9273117">CIMENonIMEToggle</a>(hIMC, hkl, hWnd);</div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160; </div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;    <span class="keywordflow">case</span> IME_CHOTKEY_SYMBOL_TOGGLE:</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;    <span class="keywordflow">case</span> IME_THOTKEY_SYMBOL_TOGGLE:</div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00290.html#a33800c2717617b9775666d62b38a6d63">CSymbolToggle</a>(hIMC, hkl, hWnd);</div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160; </div>
<div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;    <span class="keywordflow">case</span> IME_JHOTKEY_CLOSE_OPEN:</div>
<div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00290.html#a24fb9a95d0840522ea450a58c1d991c6">JCloseOpen</a>( hIMC, hkl, hWnd);</div>
<div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160; </div>
<div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;<span class="preprocessor">#ifdef LATER</span></div>
<div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;    <span class="keywordflow">case</span> IME_KHOTKEY_ENGLISH:</div>
<div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00290.html#a34ab8713b440f62e49aca7396078b501">KEnglishHangeul</a>(pThreadLink);</div>
<div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;    <span class="keywordflow">case</span> IME_KHOTKEY_SHAPE_TOGGLE:</div>
<div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00290.html#a98214bc2c7b6cf81de284d5988c85e7a">KShapeToggle</a>(pThreadLink);</div>
<div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;    <span class="keywordflow">case</span> IME_KHOTKEY_HANJACONVERT:</div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00290.html#aca264753730daaafd8b19979ec8b5511">KHanjaConvert</a>(pThreadLink);</div>
<div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160; </div>
<div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;    <span class="keywordflow">case</span> IME_CHOTKEY_SHAPE_TOGGLE:</div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;    <span class="keywordflow">case</span> IME_THOTKEY_SHAPE_TOGGLE:</div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00290.html#a1ebfa165d5401811c7df846ab4b12e46">TShapeToggle</a>(hIMC, hkl, hWnd);</div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160; </div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;        <span class="keywordflow">if</span> ( dwHotKeyID &gt;= IME_HOTKEY_DSWITCH_FIRST &amp;&amp; </div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;             dwHotKeyID &lt;= IME_HOTKEY_DSWITCH_LAST )</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;        {</div>
<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;            <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uModifiers;</div>
<div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;            <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uVKey;</div>
<div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;            HKL hkl;</div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;        </div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;            <span class="keywordflow">if</span> ( <a class="code" href="a00290.html#ab182755bc3002965f65aac6a072f0bc0">ImmGetHotKey</a>( dwHotKeyID, &amp;uModifiers, &amp;uVKey, &amp;hkl ) ) {</div>
<div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;                HKL hklCurrent;</div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160; </div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;                hklCurrent = <a class="code" href="a00026.html#a46278f8b1db32b9b4679eee6abc9e1b4">GetKeyboardLayout</a>( <a class="code" href="a00263.html#a1dc37c01a43d34053e1dbf4ee8e0da0a">GetWindowThreadProcessId</a>( hWnd, NULL) );</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;                <span class="keywordflow">if</span> ( hklCurrent != hkl ) {</div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;                    <a class="code" href="a00356.html#a3f53b9d5a549a62853c4e3fb22b649d7">PostMessage</a>( hWnd, </div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;                                 WM_INPUTLANGCHANGEREQUEST, </div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;                                 DEFAULT_CHARSET,</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;                                 (LPARAM)hkl );</div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;                }</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;                <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;            }</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;        }</div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;    }</div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;    <span class="keywordflow">return</span> (FALSE);</div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00290_source.html#l00736">CIMENonIMEToggle()</a>, <a class="el" href="a00290_source.html#l00845">CSymbolToggle()</a>, <a class="el" href="a00026_source.html#l03732">GetKeyboardLayout()</a>, <a class="el" href="a00263_source.html#l00211">GetWindowThreadProcessId()</a>, <a class="el" href="a00290_source.html#l00290">ImmGetHotKey()</a>, <a class="el" href="a00290_source.html#l00649">JCloseOpen()</a>, <a class="el" href="a00290.html#a34ab8713b440f62e49aca7396078b501">KEnglishHangeul()</a>, <a class="el" href="a00290.html#aca264753730daaafd8b19979ec8b5511">KHanjaConvert()</a>, <a class="el" href="a00290.html#a98214bc2c7b6cf81de284d5988c85e7a">KShapeToggle()</a>, <a class="el" href="a00356_source.html#l00471">PostMessage()</a>, <a class="el" href="a00290_source.html#l00895">TShapeToggle()</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03287_source.html#l00023">ImmProcessKey()</a> , 以及 <a class="el" href="a00290_source.html#l00360">ImmSimulateHotKey()</a>.</p>

</div>
</div>
<a id="aa61fdc966411e1202eea4ee9c1470df9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa61fdc966411e1202eea4ee9c1470df9">&#9670;&nbsp;</a></span>ImmGetCandidateListCountWorker()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> ImmGetCandidateListCountWorker </td>
          <td>(</td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hImc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPDWORD&#160;</td>
          <td class="paramname"><em>lpdwListCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fAnsi</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00281_source.html">ctxtinfo.c</a> 第 <a class="el" href="a00281_source.html#l00750">750</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160;{</div>
<div class="line"><a name="l00755"></a><span class="lineno">  755</span>&#160;    <a class="code" href="a02057.html">PCLIENTIMC</a>      pClientImc;</div>
<div class="line"><a name="l00756"></a><span class="lineno">  756</span>&#160;    PINPUTCONTEXT   pInputContext;</div>
<div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160;    LPCANDIDATEINFO lpCandInfo;</div>
<div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>           dwRet = 0;</div>
<div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>             i;</div>
<div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160; </div>
<div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;    <span class="keywordflow">if</span> (lpdwListCount) {</div>
<div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;        *lpdwListCount = 0;</div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;ImmGetCandidateListCount: NULL lpdwListCount.&quot;</span>);</div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;        <span class="keywordflow">return</span> dwRet;</div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;    }</div>
<div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160; </div>
<div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;    pClientImc = <a class="code" href="a00311.html#abad0a50d57502d3e8ec482dd68997ad9">ImmLockClientImc</a>(hImc);</div>
<div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;    <span class="keywordflow">if</span> (pClientImc == NULL) {</div>
<div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;ImmGetCandidateListCount: Invalid hImc %lx.&quot;</span>, hImc);</div>
<div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;        <span class="keywordflow">goto</span> GetCandListCntExit;</div>
<div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;    }</div>
<div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160; </div>
<div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;    pInputContext = <a class="code" href="a00311.html#a93ced286ed15ec806746defb9a3ed34d">ImmLockIMC</a>(hImc);</div>
<div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160;    <span class="keywordflow">if</span> (pInputContext == NULL) {</div>
<div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;ImmGetCandidateListCount: Lock hImc %lx failed.&quot;</span>, hImc);</div>
<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;        <span class="keywordflow">goto</span> GetCandListCntUnlockClientImc;</div>
<div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;    }</div>
<div class="line"><a name="l00779"></a><span class="lineno">  779</span>&#160; </div>
<div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160;    lpCandInfo = (LPCANDIDATEINFO)<a class="code" href="a00311.html#a02ff95b5201786b482e825455b481f51">ImmLockIMCC</a>(pInputContext-&gt;hCandInfo);</div>
<div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160;    <span class="keywordflow">if</span> (!lpCandInfo) {</div>
<div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>,</div>
<div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;              <span class="stringliteral">&quot;ImmGetCandidateListCount: Lock hCandInfo %x failed.&quot;</span>,</div>
<div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160;              pInputContext-&gt;hCandInfo);</div>
<div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;        <span class="keywordflow">goto</span> GetCandListCntUnlockIMC;</div>
<div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;    }</div>
<div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160; </div>
<div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160;    <span class="keywordflow">if</span> (lpCandInfo-&gt;dwSize &lt; <span class="keyword">sizeof</span>(CANDIDATEINFO)) {</div>
<div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;ImmGetCandidateListCount: no candidate list.&quot;</span>);</div>
<div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;        <span class="keywordflow">goto</span> GetCandListCntUnlockIMC;</div>
<div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;    }</div>
<div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160; </div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;    *lpdwListCount = lpCandInfo-&gt;dwCount;</div>
<div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160; </div>
<div class="line"><a name="l00795"></a><span class="lineno">  795</span>&#160;    <span class="keywordflow">if</span> (fAnsi &amp;&amp; <a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>)) {</div>
<div class="line"><a name="l00796"></a><span class="lineno">  796</span>&#160;        LPCANDIDATELIST lpCandListW;</div>
<div class="line"><a name="l00797"></a><span class="lineno">  797</span>&#160; </div>
<div class="line"><a name="l00798"></a><span class="lineno">  798</span>&#160;        dwRet = <a class="code" href="a00293.html#adc27486f01a116d0c0eaeb809b796060">DWORD_ALIGN</a>(<span class="keyword">sizeof</span>(CANDIDATEINFO))</div>
<div class="line"><a name="l00799"></a><span class="lineno">  799</span>&#160;              + <a class="code" href="a00293.html#adc27486f01a116d0c0eaeb809b796060">DWORD_ALIGN</a>(lpCandInfo-&gt;dwPrivateSize);</div>
<div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160; </div>
<div class="line"><a name="l00801"></a><span class="lineno">  801</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)lpCandInfo-&gt;dwCount; i++) {</div>
<div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;            lpCandListW = (LPCANDIDATELIST)((LPBYTE)lpCandInfo + lpCandInfo-&gt;dwOffset[i]);</div>
<div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160;            dwRet += <a class="code" href="a00281.html#a2d8525c61132e88d7cbc60f12d725aa1">InternalGetCandidateListWtoA</a>(lpCandListW, NULL, 0);</div>
<div class="line"><a name="l00804"></a><span class="lineno">  804</span>&#160;        }</div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;    }</div>
<div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!fAnsi &amp;&amp; !<a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>)) {</div>
<div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160;        LPCANDIDATELIST lpCandListA;</div>
<div class="line"><a name="l00808"></a><span class="lineno">  808</span>&#160; </div>
<div class="line"><a name="l00809"></a><span class="lineno">  809</span>&#160;        dwRet = <a class="code" href="a00293.html#adc27486f01a116d0c0eaeb809b796060">DWORD_ALIGN</a>(<span class="keyword">sizeof</span>(CANDIDATEINFO))</div>
<div class="line"><a name="l00810"></a><span class="lineno">  810</span>&#160;              + <a class="code" href="a00293.html#adc27486f01a116d0c0eaeb809b796060">DWORD_ALIGN</a>(lpCandInfo-&gt;dwPrivateSize);</div>
<div class="line"><a name="l00811"></a><span class="lineno">  811</span>&#160; </div>
<div class="line"><a name="l00812"></a><span class="lineno">  812</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)lpCandInfo-&gt;dwCount; i++) {</div>
<div class="line"><a name="l00813"></a><span class="lineno">  813</span>&#160;            lpCandListA = (LPCANDIDATELIST)((LPBYTE)lpCandInfo + lpCandInfo-&gt;dwOffset[i]);</div>
<div class="line"><a name="l00814"></a><span class="lineno">  814</span>&#160;            dwRet += <a class="code" href="a00281.html#a9fb668b6f2ddb30602d6bcfe784d371d">InternalGetCandidateListAtoW</a>(lpCandListA, NULL, 0);</div>
<div class="line"><a name="l00815"></a><span class="lineno">  815</span>&#160;        }</div>
<div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;    }</div>
<div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160;        dwRet = lpCandInfo-&gt;dwSize;</div>
<div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;    }</div>
<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160; </div>
<div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;    <a class="code" href="a00311.html#a4363eede481a6941c0b440711a64442c">ImmUnlockIMCC</a>(pInputContext-&gt;hCandInfo);</div>
<div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160; </div>
<div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160;GetCandListCntUnlockIMC:</div>
<div class="line"><a name="l00824"></a><span class="lineno">  824</span>&#160;    <a class="code" href="a00311.html#a5d94d0239203482be832b9a8e6f67754">ImmUnlockIMC</a>(hImc);</div>
<div class="line"><a name="l00825"></a><span class="lineno">  825</span>&#160; </div>
<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;GetCandListCntUnlockClientImc:</div>
<div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;    <a class="code" href="a00311.html#a9488726a81b957d10975e322e12b13e0">ImmUnlockClientImc</a>(pClientImc);</div>
<div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160; </div>
<div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160;GetCandListCntExit:</div>
<div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160;    <span class="keywordflow">return</span> dwRet;</div>
<div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00293_source.html#l00130">DWORD_ALIGN</a>, <a class="el" href="a00341_source.html#l00029">IMCF_UNICODE</a>, <a class="el" href="a00311_source.html#l00570">ImmLockClientImc()</a>, <a class="el" href="a00311_source.html#l00243">ImmLockIMC()</a>, <a class="el" href="a00311_source.html#l00386">ImmLockIMCC()</a>, <a class="el" href="a00311_source.html#l00623">ImmUnlockClientImc()</a>, <a class="el" href="a00311_source.html#l00302">ImmUnlockIMC()</a>, <a class="el" href="a00311_source.html#l00399">ImmUnlockIMCC()</a>, <a class="el" href="a00281_source.html#l02649">InternalGetCandidateListAtoW()</a>, <a class="el" href="a00281_source.html#l02725">InternalGetCandidateListWtoA()</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00131">RIPMSG0</a>, <a class="el" href="a00371_source.html#l00132">RIPMSG1</a> , 以及 <a class="el" href="a00293_source.html#l00136">TestICF</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00281_source.html#l00716">ImmGetCandidateListCountA()</a> , 以及 <a class="el" href="a00281_source.html#l00733">ImmGetCandidateListCountW()</a>.</p>

</div>
</div>
<a id="a9713d317695c536dc50779f29b007389"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9713d317695c536dc50779f29b007389">&#9670;&nbsp;</a></span>ImmGetCandidateListWorker()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> ImmGetCandidateListWorker </td>
          <td>(</td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hImc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPCANDIDATELIST&#160;</td>
          <td class="paramname"><em>lpCandList</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwBufLen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fAnsi</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00281_source.html">ctxtinfo.c</a> 第 <a class="el" href="a00281_source.html#l00883">883</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00889"></a><span class="lineno">  889</span>&#160;{</div>
<div class="line"><a name="l00890"></a><span class="lineno">  890</span>&#160;    <a class="code" href="a02057.html">PCLIENTIMC</a>      pClientImc;</div>
<div class="line"><a name="l00891"></a><span class="lineno">  891</span>&#160;    PINPUTCONTEXT   pInputContext;</div>
<div class="line"><a name="l00892"></a><span class="lineno">  892</span>&#160;    LPCANDIDATEINFO lpCandInfo;</div>
<div class="line"><a name="l00893"></a><span class="lineno">  893</span>&#160;    LPCANDIDATELIST lpCandListTemp;</div>
<div class="line"><a name="l00894"></a><span class="lineno">  894</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>           dwBufLenTemp;</div>
<div class="line"><a name="l00895"></a><span class="lineno">  895</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>           dwRet = 0;</div>
<div class="line"><a name="l00896"></a><span class="lineno">  896</span>&#160; </div>
<div class="line"><a name="l00897"></a><span class="lineno">  897</span>&#160;    pClientImc = <a class="code" href="a00311.html#abad0a50d57502d3e8ec482dd68997ad9">ImmLockClientImc</a>(hImc);</div>
<div class="line"><a name="l00898"></a><span class="lineno">  898</span>&#160;    <span class="keywordflow">if</span> (pClientImc == NULL) {</div>
<div class="line"><a name="l00899"></a><span class="lineno">  899</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;ImmGetCandidateList: Invalid hImc %lx.&quot;</span>, hImc);</div>
<div class="line"><a name="l00900"></a><span class="lineno">  900</span>&#160;        <span class="keywordflow">goto</span> GetCandListExit;</div>
<div class="line"><a name="l00901"></a><span class="lineno">  901</span>&#160;    }</div>
<div class="line"><a name="l00902"></a><span class="lineno">  902</span>&#160; </div>
<div class="line"><a name="l00903"></a><span class="lineno">  903</span>&#160;    pInputContext = <a class="code" href="a00311.html#a93ced286ed15ec806746defb9a3ed34d">ImmLockIMC</a>(hImc);</div>
<div class="line"><a name="l00904"></a><span class="lineno">  904</span>&#160;    <span class="keywordflow">if</span> (pInputContext == NULL) {</div>
<div class="line"><a name="l00905"></a><span class="lineno">  905</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;ImmGetCandidateList: Lock hImc %lx failed.&quot;</span>, hImc);</div>
<div class="line"><a name="l00906"></a><span class="lineno">  906</span>&#160;        <span class="keywordflow">goto</span> GetCandListUnlockClientImc;</div>
<div class="line"><a name="l00907"></a><span class="lineno">  907</span>&#160;    }</div>
<div class="line"><a name="l00908"></a><span class="lineno">  908</span>&#160; </div>
<div class="line"><a name="l00909"></a><span class="lineno">  909</span>&#160;    lpCandInfo = (LPCANDIDATEINFO)<a class="code" href="a00311.html#a02ff95b5201786b482e825455b481f51">ImmLockIMCC</a>(pInputContext-&gt;hCandInfo);</div>
<div class="line"><a name="l00910"></a><span class="lineno">  910</span>&#160;    <span class="keywordflow">if</span> (!lpCandInfo) {</div>
<div class="line"><a name="l00911"></a><span class="lineno">  911</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;ImmGetCandidateList: Lock hCandInfo %x failed&quot;</span>,</div>
<div class="line"><a name="l00912"></a><span class="lineno">  912</span>&#160;              pInputContext-&gt;hCandInfo);</div>
<div class="line"><a name="l00913"></a><span class="lineno">  913</span>&#160;        <span class="keywordflow">goto</span> GetCandListUnlockIMC;</div>
<div class="line"><a name="l00914"></a><span class="lineno">  914</span>&#160;    }</div>
<div class="line"><a name="l00915"></a><span class="lineno">  915</span>&#160; </div>
<div class="line"><a name="l00916"></a><span class="lineno">  916</span>&#160;    <span class="keywordflow">if</span> (lpCandInfo-&gt;dwSize &lt; <span class="keyword">sizeof</span>(CANDIDATEINFO)) {</div>
<div class="line"><a name="l00917"></a><span class="lineno">  917</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;ImmGetCandidateList: no candidate list.&quot;</span>);</div>
<div class="line"><a name="l00918"></a><span class="lineno">  918</span>&#160;        <span class="keywordflow">goto</span> GetCandListUnlockIMCC;</div>
<div class="line"><a name="l00919"></a><span class="lineno">  919</span>&#160;    }</div>
<div class="line"><a name="l00920"></a><span class="lineno">  920</span>&#160; </div>
<div class="line"><a name="l00921"></a><span class="lineno">  921</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00922"></a><span class="lineno">  922</span>&#160;<span class="comment">     * invalid access</span></div>
<div class="line"><a name="l00923"></a><span class="lineno">  923</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00924"></a><span class="lineno">  924</span>&#160;    <span class="keywordflow">if</span> (dwIndex &gt;= lpCandInfo-&gt;dwCount) {</div>
<div class="line"><a name="l00925"></a><span class="lineno">  925</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;ImmGetCandidateList: dwIndex &gt;= lpCandInfo-&gt;dwCount.&quot;</span>);</div>
<div class="line"><a name="l00926"></a><span class="lineno">  926</span>&#160;        <span class="keywordflow">goto</span> GetCandListUnlockIMCC;</div>
<div class="line"><a name="l00927"></a><span class="lineno">  927</span>&#160;    }</div>
<div class="line"><a name="l00928"></a><span class="lineno">  928</span>&#160; </div>
<div class="line"><a name="l00929"></a><span class="lineno">  929</span>&#160;    lpCandListTemp = (LPCANDIDATELIST)((LPBYTE)lpCandInfo + lpCandInfo-&gt;dwOffset[dwIndex]);</div>
<div class="line"><a name="l00930"></a><span class="lineno">  930</span>&#160; </div>
<div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;    <span class="keywordflow">if</span> (fAnsi &amp;&amp; <a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>)) {</div>
<div class="line"><a name="l00932"></a><span class="lineno">  932</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00933"></a><span class="lineno">  933</span>&#160;<span class="comment">         * ANSI Caller with an Unicode hImc.</span></div>
<div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00935"></a><span class="lineno">  935</span>&#160;        dwBufLenTemp = <a class="code" href="a00281.html#a2d8525c61132e88d7cbc60f12d725aa1">InternalGetCandidateListWtoA</a>(lpCandListTemp, NULL, 0);</div>
<div class="line"><a name="l00936"></a><span class="lineno">  936</span>&#160;    }</div>
<div class="line"><a name="l00937"></a><span class="lineno">  937</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!fAnsi &amp;&amp; !<a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>)) {</div>
<div class="line"><a name="l00938"></a><span class="lineno">  938</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00939"></a><span class="lineno">  939</span>&#160;<span class="comment">         * Unicode Caller with an ANSI hImc.</span></div>
<div class="line"><a name="l00940"></a><span class="lineno">  940</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00941"></a><span class="lineno">  941</span>&#160;        dwBufLenTemp = <a class="code" href="a00281.html#a9fb668b6f2ddb30602d6bcfe784d371d">InternalGetCandidateListAtoW</a>(lpCandListTemp, NULL, 0);</div>
<div class="line"><a name="l00942"></a><span class="lineno">  942</span>&#160;    }</div>
<div class="line"><a name="l00943"></a><span class="lineno">  943</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00944"></a><span class="lineno">  944</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00945"></a><span class="lineno">  945</span>&#160;<span class="comment">         * No conversion required.</span></div>
<div class="line"><a name="l00946"></a><span class="lineno">  946</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00947"></a><span class="lineno">  947</span>&#160;        dwBufLenTemp = lpCandListTemp-&gt;dwSize;</div>
<div class="line"><a name="l00948"></a><span class="lineno">  948</span>&#160;    }</div>
<div class="line"><a name="l00949"></a><span class="lineno">  949</span>&#160; </div>
<div class="line"><a name="l00950"></a><span class="lineno">  950</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00951"></a><span class="lineno">  951</span>&#160;<span class="comment">     * Query buffer size or early exit on error</span></div>
<div class="line"><a name="l00952"></a><span class="lineno">  952</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00953"></a><span class="lineno">  953</span>&#160;    <span class="keywordflow">if</span> (dwBufLen == 0 || dwBufLenTemp == 0) {</div>
<div class="line"><a name="l00954"></a><span class="lineno">  954</span>&#160;        dwRet = dwBufLenTemp;</div>
<div class="line"><a name="l00955"></a><span class="lineno">  955</span>&#160;    }</div>
<div class="line"><a name="l00956"></a><span class="lineno">  956</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!lpCandList) {</div>
<div class="line"><a name="l00957"></a><span class="lineno">  957</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;ImmGetCandidateList: Null lpCandList.&quot;</span>);</div>
<div class="line"><a name="l00958"></a><span class="lineno">  958</span>&#160;    }</div>
<div class="line"><a name="l00959"></a><span class="lineno">  959</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (dwBufLen &lt; dwBufLenTemp) {</div>
<div class="line"><a name="l00960"></a><span class="lineno">  960</span>&#160;        <a class="code" href="a00371.html#a906cb0845450a5d5422ce513ecd8a32f">RIPMSG2</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;ImmGetCandidateList: dwBufLen = %d too small, require = %d.&quot;</span>,</div>
<div class="line"><a name="l00961"></a><span class="lineno">  961</span>&#160;              dwBufLen, dwBufLenTemp);</div>
<div class="line"><a name="l00962"></a><span class="lineno">  962</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00963"></a><span class="lineno">  963</span>&#160;        <span class="keywordflow">if</span> (fAnsi &amp;&amp; <a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>)) {</div>
<div class="line"><a name="l00964"></a><span class="lineno">  964</span>&#160;            dwRet = <a class="code" href="a00281.html#a2d8525c61132e88d7cbc60f12d725aa1">InternalGetCandidateListWtoA</a>(lpCandListTemp, lpCandList, dwBufLenTemp);</div>
<div class="line"><a name="l00965"></a><span class="lineno">  965</span>&#160;        }</div>
<div class="line"><a name="l00966"></a><span class="lineno">  966</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!fAnsi &amp;&amp; !<a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>)) {</div>
<div class="line"><a name="l00967"></a><span class="lineno">  967</span>&#160;            dwRet = <a class="code" href="a00281.html#a9fb668b6f2ddb30602d6bcfe784d371d">InternalGetCandidateListAtoW</a>(lpCandListTemp, lpCandList, dwBufLenTemp);</div>
<div class="line"><a name="l00968"></a><span class="lineno">  968</span>&#160;        }</div>
<div class="line"><a name="l00969"></a><span class="lineno">  969</span>&#160;        <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00970"></a><span class="lineno">  970</span>&#160;            RtlCopyMemory((LPBYTE)lpCandList, (LPBYTE)lpCandListTemp, dwBufLenTemp);</div>
<div class="line"><a name="l00971"></a><span class="lineno">  971</span>&#160;            dwRet = dwBufLenTemp;</div>
<div class="line"><a name="l00972"></a><span class="lineno">  972</span>&#160;        }</div>
<div class="line"><a name="l00973"></a><span class="lineno">  973</span>&#160;    }</div>
<div class="line"><a name="l00974"></a><span class="lineno">  974</span>&#160; </div>
<div class="line"><a name="l00975"></a><span class="lineno">  975</span>&#160;GetCandListUnlockIMCC:</div>
<div class="line"><a name="l00976"></a><span class="lineno">  976</span>&#160;    <a class="code" href="a00311.html#a4363eede481a6941c0b440711a64442c">ImmUnlockIMCC</a>(pInputContext-&gt;hCandInfo);</div>
<div class="line"><a name="l00977"></a><span class="lineno">  977</span>&#160; </div>
<div class="line"><a name="l00978"></a><span class="lineno">  978</span>&#160;GetCandListUnlockIMC:</div>
<div class="line"><a name="l00979"></a><span class="lineno">  979</span>&#160;    <a class="code" href="a00311.html#a5d94d0239203482be832b9a8e6f67754">ImmUnlockIMC</a>(hImc);</div>
<div class="line"><a name="l00980"></a><span class="lineno">  980</span>&#160; </div>
<div class="line"><a name="l00981"></a><span class="lineno">  981</span>&#160;GetCandListUnlockClientImc:</div>
<div class="line"><a name="l00982"></a><span class="lineno">  982</span>&#160;    <a class="code" href="a00311.html#a9488726a81b957d10975e322e12b13e0">ImmUnlockClientImc</a>(pClientImc);</div>
<div class="line"><a name="l00983"></a><span class="lineno">  983</span>&#160; </div>
<div class="line"><a name="l00984"></a><span class="lineno">  984</span>&#160;GetCandListExit:</div>
<div class="line"><a name="l00985"></a><span class="lineno">  985</span>&#160;    <span class="keywordflow">return</span> dwRet;</div>
<div class="line"><a name="l00986"></a><span class="lineno">  986</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00341_source.html#l00029">IMCF_UNICODE</a>, <a class="el" href="a00311_source.html#l00570">ImmLockClientImc()</a>, <a class="el" href="a00311_source.html#l00243">ImmLockIMC()</a>, <a class="el" href="a00311_source.html#l00386">ImmLockIMCC()</a>, <a class="el" href="a00311_source.html#l00623">ImmUnlockClientImc()</a>, <a class="el" href="a00311_source.html#l00302">ImmUnlockIMC()</a>, <a class="el" href="a00311_source.html#l00399">ImmUnlockIMCC()</a>, <a class="el" href="a00281_source.html#l02649">InternalGetCandidateListAtoW()</a>, <a class="el" href="a00281_source.html#l02725">InternalGetCandidateListWtoA()</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00131">RIPMSG0</a>, <a class="el" href="a00371_source.html#l00132">RIPMSG1</a>, <a class="el" href="a00371_source.html#l00133">RIPMSG2</a> , 以及 <a class="el" href="a00293_source.html#l00136">TestICF</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00281_source.html#l00843">ImmGetCandidateListA()</a> , 以及 <a class="el" href="a00281_source.html#l00863">ImmGetCandidateListW()</a>.</p>

</div>
</div>
<a id="aad2a7696b1d8bb0244c135f499b00d27"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad2a7696b1d8bb0244c135f499b00d27">&#9670;&nbsp;</a></span>ImmGetGuideLineWorker()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> ImmGetGuideLineWorker </td>
          <td>(</td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hImc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPBYTE&#160;</td>
          <td class="paramname"><em>lpBuf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwBufLen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fAnsi</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00281_source.html">ctxtinfo.c</a> 第 <a class="el" href="a00281_source.html#l01038">1038</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>&#160;{</div>
<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>&#160;    <a class="code" href="a02057.html">PCLIENTIMC</a>    pClientImc;</div>
<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>&#160;    PINPUTCONTEXT pInputContext;</div>
<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>&#160;    LPGUIDELINE   lpGuideLine;</div>
<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>&#160;    LPBYTE        lpBufTemp;</div>
<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>         dwRet = 0;</div>
<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>         dwBufLenNeeded;</div>
<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>&#160;    BOOL          bUDC;</div>
<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>&#160; </div>
<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>&#160;    pClientImc = <a class="code" href="a00311.html#abad0a50d57502d3e8ec482dd68997ad9">ImmLockClientImc</a>(hImc);</div>
<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>&#160;    <span class="keywordflow">if</span> (pClientImc == NULL) {</div>
<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;ImmGetGuideLine: Invalid hImc %lx.&quot;</span>, hImc);</div>
<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>&#160;        <span class="keywordflow">goto</span> GetGuideLineExit;</div>
<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>&#160;    }</div>
<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>&#160; </div>
<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>&#160;    pInputContext = <a class="code" href="a00311.html#a93ced286ed15ec806746defb9a3ed34d">ImmLockIMC</a>(hImc);</div>
<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>&#160;    <span class="keywordflow">if</span> (pInputContext == NULL) {</div>
<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;ImmGetGuideLine: Lock hImc %lx failed.&quot;</span>, hImc);</div>
<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>&#160;        <span class="keywordflow">goto</span> GetGuideLineUnlockClientImc;</div>
<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>&#160;    }</div>
<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>&#160; </div>
<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>&#160;    lpGuideLine = (LPGUIDELINE)<a class="code" href="a00311.html#a02ff95b5201786b482e825455b481f51">ImmLockIMCC</a>(pInputContext-&gt;hGuideLine);</div>
<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>&#160;    <span class="keywordflow">if</span> (!lpGuideLine) {</div>
<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;ImmGetGuideLine: Lock hGuideLine %lx failed.&quot;</span>,</div>
<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>&#160;              pInputContext-&gt;hGuideLine);</div>
<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>&#160;        <span class="keywordflow">goto</span> GetGuideLineUnlockIMC;</div>
<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>&#160;    }</div>
<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>&#160; </div>
<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>&#160;    <span class="keywordflow">switch</span> (dwIndex) {</div>
<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>&#160;    <span class="keywordflow">case</span> GGL_LEVEL:</div>
<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>&#160;        dwRet = lpGuideLine-&gt;dwLevel;</div>
<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>&#160; </div>
<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>&#160;    <span class="keywordflow">case</span> GGL_INDEX:</div>
<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>&#160;        dwRet = lpGuideLine-&gt;dwIndex;</div>
<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>&#160; </div>
<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>&#160;    <span class="keywordflow">case</span> GGL_STRING:</div>
<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>&#160; </div>
<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>&#160;        lpBufTemp = (LPBYTE)lpGuideLine + lpGuideLine-&gt;dwStrOffset;</div>
<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>&#160; </div>
<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>&#160;<span class="comment">         * Calculate the required buffer length.</span></div>
<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>&#160;        if (fAnsi &amp;&amp; <a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>)) {</div>
<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>&#160;            dwBufLenNeeded = <a class="code" href="a00941.html#aaf8b3ae5e2b40b6de6cc9377d53baa45">WideCharToMultiByte</a>(CP_ACP,</div>
<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>&#160;                                                 (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)0,</div>
<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>&#160;                                                 (LPWSTR)lpBufTemp,</div>
<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>&#160;                                                 (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)lpGuideLine-&gt;dwStrLen,</div>
<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>&#160;                                                 (LPSTR)NULL,</div>
<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>&#160;                                                 (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)0,</div>
<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>&#160;                                                 (LPSTR)NULL,</div>
<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>&#160;                                                 (LPBOOL)&amp;bUDC);</div>
<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>&#160;        }</div>
<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!fAnsi &amp;&amp; !<a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>)) {</div>
<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>&#160;            dwBufLenNeeded = <a class="code" href="a00941.html#ab5fefa29de8bde48a74efa8d838bf2d7">MultiByteToWideChar</a>(CP_ACP,</div>
<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>&#160;                                                 (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)MB_PRECOMPOSED,</div>
<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>&#160;                                                 (LPSTR)lpBufTemp,</div>
<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>&#160;                                                 (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)lpGuideLine-&gt;dwStrLen,</div>
<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>&#160;                                                 (LPWSTR)NULL,</div>
<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>&#160;                                                 (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)0);</div>
<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>&#160;            dwBufLenNeeded *= <span class="keyword">sizeof</span>(WCHAR);</div>
<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>&#160;        }</div>
<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>&#160;        <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>&#160;            dwBufLenNeeded = lpGuideLine-&gt;dwStrLen;</div>
<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>&#160;<span class="comment">             * The dwStrLen records the strlen and not the byte count.</span></div>
<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>))</div>
<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>&#160;                dwBufLenNeeded *= <span class="keyword">sizeof</span>(WCHAR);</div>
<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>&#160;        }</div>
<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>&#160; </div>
<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>&#160;<span class="comment">         * Query GuideLine string size only or early exit on error</span></div>
<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>&#160;        <span class="keywordflow">if</span> (dwBufLen == 0 || dwBufLenNeeded == 0) {</div>
<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>&#160;            dwRet = dwBufLenNeeded;</div>
<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>&#160;            <span class="keywordflow">goto</span> GetGuideLineUnlockIMCC;</div>
<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>&#160;        }</div>
<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>&#160; </div>
<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>&#160;        <span class="keywordflow">if</span> (lpBuf == NULL || dwBufLen &lt; dwBufLenNeeded)</div>
<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>&#160;            <span class="keywordflow">goto</span> GetGuideLineUnlockIMCC;</div>
<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>&#160; </div>
<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>&#160;        <span class="keywordflow">if</span> (fAnsi &amp;&amp; <a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>)) {</div>
<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>&#160;            dwRet = <a class="code" href="a00941.html#aaf8b3ae5e2b40b6de6cc9377d53baa45">WideCharToMultiByte</a>(CP_ACP,</div>
<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>&#160;                                        (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)0,</div>
<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>&#160;                                        (LPWSTR)lpBufTemp,</div>
<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>&#160;                                        (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)lpGuideLine-&gt;dwStrLen,</div>
<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>&#160;                                        (LPSTR)lpBuf,</div>
<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>&#160;                                        (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)dwBufLen,</div>
<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>&#160;                                        (LPSTR)NULL,</div>
<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>&#160;                                        (LPBOOL)&amp;bUDC);</div>
<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>&#160;        }</div>
<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!fAnsi &amp;&amp; !<a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>)) {</div>
<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>&#160;            dwRet = <a class="code" href="a00941.html#ab5fefa29de8bde48a74efa8d838bf2d7">MultiByteToWideChar</a>(CP_ACP,</div>
<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>&#160;                                        (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)MB_PRECOMPOSED,</div>
<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>&#160;                                        (LPSTR)lpBufTemp,</div>
<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>&#160;                                        (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)lpGuideLine-&gt;dwStrLen,</div>
<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>&#160;                                        (LPWSTR)lpBuf,</div>
<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>&#160;                                        (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)dwBufLen/<span class="keyword">sizeof</span>(WCHAR));</div>
<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>&#160;            dwRet *= <span class="keyword">sizeof</span>(WCHAR);</div>
<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>&#160;        }</div>
<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>&#160;        <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>&#160;            RtlCopyMemory(lpBuf, lpBufTemp, dwBufLenNeeded);</div>
<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>&#160;            dwRet = dwBufLenNeeded;</div>
<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>&#160;        }</div>
<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>&#160; </div>
<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>&#160; </div>
<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>&#160;    <span class="keywordflow">case</span> GGL_PRIVATE:</div>
<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>&#160; </div>
<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>&#160;        lpBufTemp = (LPBYTE)lpGuideLine + lpGuideLine-&gt;dwPrivateOffset;</div>
<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>&#160; </div>
<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>&#160;<span class="comment">         * The dwPrivateOffset is an offset to a CANDIDATELIST when</span></div>
<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>&#160;<span class="comment">         * lpGuideLine-&gt;dwIndex == GL_ID_REVERSECONVERSION. Do conversion</span></div>
<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>&#160;<span class="comment">         * for this case only.</span></div>
<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>&#160;        if (fAnsi &amp;&amp; <a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>) &amp;&amp;</div>
<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>&#160;                lpGuideLine-&gt;dwIndex == GL_ID_REVERSECONVERSION) {</div>
<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>&#160;            dwBufLenNeeded = <a class="code" href="a00281.html#a2d8525c61132e88d7cbc60f12d725aa1">InternalGetCandidateListWtoA</a>(</div>
<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>&#160;                        (LPCANDIDATELIST)lpBufTemp, (LPCANDIDATELIST)NULL, 0);</div>
<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>&#160;        }</div>
<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!fAnsi &amp;&amp; !<a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>) &amp;&amp;</div>
<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>&#160;                lpGuideLine-&gt;dwIndex == GL_ID_REVERSECONVERSION) {</div>
<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>&#160;            dwBufLenNeeded = <a class="code" href="a00281.html#a9fb668b6f2ddb30602d6bcfe784d371d">InternalGetCandidateListAtoW</a>(</div>
<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>&#160;                        (LPCANDIDATELIST)lpBufTemp, (LPCANDIDATELIST)NULL, 0);</div>
<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>&#160;        }</div>
<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>&#160;        <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>&#160;            dwBufLenNeeded = lpGuideLine-&gt;dwPrivateSize;</div>
<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>&#160;        }</div>
<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>&#160; </div>
<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>&#160;<span class="comment">         * Query dwPrivateSize size only or early exit on error</span></div>
<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>&#160;        <span class="keywordflow">if</span> (dwBufLen == 0 || dwBufLenNeeded == 0) {</div>
<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>&#160;            dwRet = dwBufLenNeeded;</div>
<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>&#160;            <span class="keywordflow">goto</span> GetGuideLineUnlockIMCC;</div>
<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>&#160;        }</div>
<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>&#160; </div>
<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>&#160;        <span class="keywordflow">if</span> (lpBuf == NULL || dwBufLen &lt; dwBufLenNeeded)</div>
<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>&#160;            <span class="keywordflow">goto</span> GetGuideLineUnlockIMCC;</div>
<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>&#160; </div>
<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>&#160;        <span class="keywordflow">if</span> (fAnsi &amp;&amp; <a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>) &amp;&amp;</div>
<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>&#160;                lpGuideLine-&gt;dwIndex == GL_ID_REVERSECONVERSION) {</div>
<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>&#160;            dwRet = <a class="code" href="a00281.html#a2d8525c61132e88d7cbc60f12d725aa1">InternalGetCandidateListWtoA</a>(</div>
<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>&#160;                    (LPCANDIDATELIST)lpBufTemp, (LPCANDIDATELIST)lpBuf, dwBufLenNeeded);</div>
<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>&#160;        }</div>
<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!fAnsi &amp;&amp; !<a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>) &amp;&amp;</div>
<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>&#160;                lpGuideLine-&gt;dwIndex == GL_ID_REVERSECONVERSION) {</div>
<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>&#160;            dwRet = <a class="code" href="a00281.html#a9fb668b6f2ddb30602d6bcfe784d371d">InternalGetCandidateListAtoW</a>(</div>
<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>&#160;                    (LPCANDIDATELIST)lpBufTemp, (LPCANDIDATELIST)lpBuf, dwBufLenNeeded);</div>
<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>&#160;        }</div>
<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>&#160;        <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>&#160;            RtlCopyMemory(lpBuf, lpBufTemp, dwBufLenNeeded);</div>
<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>&#160;            dwRet = dwBufLenNeeded;</div>
<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>&#160;        }</div>
<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>&#160; </div>
<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>&#160; </div>
<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>&#160;    }</div>
<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>&#160; </div>
<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>&#160;GetGuideLineUnlockIMCC:</div>
<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>&#160;    <a class="code" href="a00311.html#a4363eede481a6941c0b440711a64442c">ImmUnlockIMCC</a>(pInputContext-&gt;hGuideLine);</div>
<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>&#160; </div>
<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>&#160;GetGuideLineUnlockIMC:</div>
<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>&#160;    <a class="code" href="a00311.html#a5d94d0239203482be832b9a8e6f67754">ImmUnlockIMC</a>(hImc);</div>
<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>&#160; </div>
<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>&#160;GetGuideLineUnlockClientImc:</div>
<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>&#160;    <a class="code" href="a00311.html#a9488726a81b957d10975e322e12b13e0">ImmUnlockClientImc</a>(pClientImc);</div>
<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>&#160; </div>
<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>&#160;GetGuideLineExit:</div>
<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>&#160;    <span class="keywordflow">return</span> dwRet;</div>
<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00341_source.html#l00029">IMCF_UNICODE</a>, <a class="el" href="a00311_source.html#l00570">ImmLockClientImc()</a>, <a class="el" href="a00311_source.html#l00243">ImmLockIMC()</a>, <a class="el" href="a00311_source.html#l00386">ImmLockIMCC()</a>, <a class="el" href="a00311_source.html#l00623">ImmUnlockClientImc()</a>, <a class="el" href="a00311_source.html#l00302">ImmUnlockIMC()</a>, <a class="el" href="a00311_source.html#l00399">ImmUnlockIMCC()</a>, <a class="el" href="a00281_source.html#l02649">InternalGetCandidateListAtoW()</a>, <a class="el" href="a00281_source.html#l02725">InternalGetCandidateListWtoA()</a>, <a class="el" href="a00941.html#ab5fefa29de8bde48a74efa8d838bf2d7">MultiByteToWideChar()</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00132">RIPMSG1</a>, <a class="el" href="a00293_source.html#l00136">TestICF</a> , 以及 <a class="el" href="a00941.html#aaf8b3ae5e2b40b6de6cc9377d53baa45">WideCharToMultiByte()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00281_source.html#l00998">ImmGetGuideLineA()</a> , 以及 <a class="el" href="a00281_source.html#l01018">ImmGetGuideLineW()</a>.</p>

</div>
</div>
<a id="af4346af115109f5eb5c09f144b9b226f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4346af115109f5eb5c09f144b9b226f">&#9670;&nbsp;</a></span>ImmIsUIMessageWorker()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL ImmIsUIMessageWorker </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hIMEWnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WPARAM&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPARAM&#160;</td>
          <td class="paramname"><em>lParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fAnsi</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00311_source.html">misc.c</a> 第 <a class="el" href="a00311_source.html#l00082">82</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;{</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keywordflow">switch</span> (message) {</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keywordflow">case</span> WM_IME_STARTCOMPOSITION:</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keywordflow">case</span> WM_IME_ENDCOMPOSITION:</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keywordflow">case</span> WM_IME_COMPOSITION:</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="keywordflow">case</span> WM_IME_SETCONTEXT:</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keywordflow">case</span> WM_IME_COMPOSITIONFULL:</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keywordflow">case</span> WM_IME_SELECT:</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keywordflow">case</span> WM_IME_NOTIFY:</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="keywordflow">case</span> WM_IME_SYSTEM:</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <span class="keywordflow">if</span> (!hIMEWnd)</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;            <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="preprocessor">#ifdef DEBUG</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        <span class="keywordflow">if</span> (!<a class="code" href="a03743.html#ac5ede70e870dc1cf540d7524887e4edc">IsWindow</a>(hIMEWnd)) {</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;            <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>,</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;                  <span class="stringliteral">&quot;ImmIsUIMessage: Invalid window handle %x&quot;</span>, hIMEWnd);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        }</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        <span class="keywordflow">if</span> (fAnsi) {</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;            SendMessageA(hIMEWnd, message, wParam, lParam);</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        }</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;            SendMessageW(hIMEWnd, message, wParam, lParam);</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        }</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    }</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160; </div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03743_source.html#l00421">IsWindow()</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a> , 以及 <a class="el" href="a00371_source.html#l00132">RIPMSG1</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00311_source.html#l00043">ImmIsUIMessageA()</a> , 以及 <a class="el" href="a00311_source.html#l00061">ImmIsUIMessageW()</a>.</p>

</div>
</div>
<a id="ac3cdae94ad0358e721373e78a01f13d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3cdae94ad0358e721373e78a01f13d1">&#9670;&nbsp;</a></span>ImmPostMessages()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID ImmPostMessages </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hImc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>iNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PDWORD&#160;</td>
          <td class="paramname"><em>pdwTransBuf</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03287_source.html">imm/input.c</a> 第 <a class="el" href="a03287_source.html#l00293">293</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;{</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> i;</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    BOOL fAnsi;</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;    <a class="code" href="a02057.html">PCLIENTIMC</a> pClientImc;</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160; </div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;    pClientImc = <a class="code" href="a00311.html#abad0a50d57502d3e8ec482dd68997ad9">ImmLockClientImc</a>(hImc);</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;    <span class="keywordflow">if</span> (pClientImc == NULL) {</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>,</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;              <span class="stringliteral">&quot;ImmPostMessages: Invalid hImc %lx.&quot;</span>, hImc);</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;    }</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    fAnsi = !<a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>);</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    <a class="code" href="a00311.html#a9488726a81b957d10975e322e12b13e0">ImmUnlockClientImc</a>(pClientImc);</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160; </div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;<span class="preprocessor">#ifdef LATER</span></div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    <span class="comment">// translate messages to 3.x format if the App&#39;s version is 3.x.</span></div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160; </div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    <span class="keywordflow">for</span> ( i = 0; i &lt; iNum; i++ ) {</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160; </div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;        <span class="keywordflow">if</span> (fAnsi) {</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;            PostMessageA( hWnd, (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)*pdwt, (WPARAM)*(pdwt+1), (LPARAM)*(pdwt+2) );</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;            PostMessageW( hWnd, (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)*pdwt, (WPARAM)*(pdwt+1), (LPARAM)*(pdwt+2) );</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;        }</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;        pdwt += 3;</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;    }</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00341_source.html#l00029">IMCF_UNICODE</a>, <a class="el" href="a00311_source.html#l00570">ImmLockClientImc()</a>, <a class="el" href="a00311_source.html#l00623">ImmUnlockClientImc()</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00132">RIPMSG1</a>, <a class="el" href="a00293_source.html#l00136">TestICF</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03287_source.html#l00086">ImmTranslateMessage()</a>.</p>

</div>
</div>
<a id="abbbc6737a115ca5d74c863376eb5418c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbbc6737a115ca5d74c863376eb5418c">&#9670;&nbsp;</a></span>ImmSetCompositionStringWorker()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL ImmSetCompositionStringWorker </td>
          <td>(</td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hImc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPCVOID&#160;</td>
          <td class="paramname"><em>lpComp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwCompLen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPCVOID&#160;</td>
          <td class="paramname"><em>lpRead</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwReadLen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fAnsi</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00281_source.html">ctxtinfo.c</a> 第 <a class="el" href="a00281_source.html#l00547">547</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;{</div>
<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;    PINPUTCONTEXT      pInputContext;</div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;    PCOMPOSITIONSTRING pCompStr;</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>              dwThreadId;</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;    <a class="code" href="a02061.html">PIMEDPI</a>            pImeDpi;</div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;    LPBYTE             lpCompBuf, lpReadBuf;</div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;    LPBYTE             lpNewComp, lpNewRead;</div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>              dwNewCompLen, dwNewReadLen;</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;    BOOL               fRet = FALSE;</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160; </div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;    dwThreadId = <a class="code" href="a00293.html#aa5b41822aa928c904209ff5ab3f734b7">GetInputContextThread</a>(hImc);</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;    <span class="keywordflow">if</span> (dwThreadId == 0) {</div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>,</div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;              <span class="stringliteral">&quot;ImmSetCompositionString: GetInputContextThread(%lx) failed.&quot;</span>, hImc);</div>
<div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160; </div>
<div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;    }</div>
<div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160; </div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;    pImeDpi = <a class="code" href="a00311.html#a321a0bacc1c67d1fefea199d0c6f4612">ImmLockImeDpi</a>(<a class="code" href="a00026.html#a46278f8b1db32b9b4679eee6abc9e1b4">GetKeyboardLayout</a>(dwThreadId));</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;    <span class="keywordflow">if</span> (pImeDpi == NULL)</div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160; </div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;    lpCompBuf = lpReadBuf = NULL;</div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160; </div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;<span class="comment">     * Check if we need ANSI/Unicode conversion</span></div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;    <span class="keywordflow">if</span> (( fAnsi &amp;&amp; !(pImeDpi-&gt;<a class="code" href="a02061.html#acbd013b579c0b839717284fb40eb7fbe">ImeInfo</a>.fdwProperty &amp; IME_PROP_UNICODE)) ||</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;        (!fAnsi &amp;&amp;  (pImeDpi-&gt;<a class="code" href="a02061.html#acbd013b579c0b839717284fb40eb7fbe">ImeInfo</a>.fdwProperty &amp; IME_PROP_UNICODE))) {</div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;<span class="comment">         * No A/W conversion needed.</span></div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;        <span class="keywordflow">goto</span> start_scs;</div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;    }</div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160; </div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;    <span class="keywordflow">switch</span> (dwIndex) {</div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;    <span class="keywordflow">case</span> SCS_SETSTR:</div>
<div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;        <span class="keywordflow">if</span> ( lpComp &amp;&amp;</div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;            (lpCompBuf = <a class="code" href="a00281.html#a45b0ddd2cbbf87791efddc5cc51ff393">InternalSCS_SETSTR</a>(lpComp, dwCompLen,</div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;                                &amp;lpNewComp, &amp;dwNewCompLen, fAnsi)) == NULL)</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;            <span class="keywordflow">goto</span> end_scs;</div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;        <span class="keywordflow">if</span> ( lpRead &amp;&amp;</div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;            (lpReadBuf = <a class="code" href="a00281.html#a45b0ddd2cbbf87791efddc5cc51ff393">InternalSCS_SETSTR</a>(lpRead, dwReadLen,</div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;                                &amp;lpNewRead, &amp;dwNewReadLen, fAnsi)) == NULL)</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;            <span class="keywordflow">goto</span> end_scs;</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160; </div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;    <span class="keywordflow">case</span> SCS_CHANGEATTR:</div>
<div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;        <span class="keywordflow">if</span> ( lpComp &amp;&amp;</div>
<div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;            (lpCompBuf = <a class="code" href="a00281.html#ad80bdf0d375b88695668dac026159464">InternalSCS_CHANGEATTR</a>(</div>
<div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;                                hImc, lpComp, dwCompLen, GCS_COMPSTR,</div>
<div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;                                &amp;lpNewComp, &amp;dwNewCompLen, fAnsi)) == NULL)</div>
<div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;            <span class="keywordflow">goto</span> end_scs;</div>
<div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;        <span class="keywordflow">if</span> ( lpRead &amp;&amp;</div>
<div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;            (lpReadBuf = <a class="code" href="a00281.html#ad80bdf0d375b88695668dac026159464">InternalSCS_CHANGEATTR</a>(</div>
<div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;                                hImc, lpRead, dwReadLen, GCS_COMPREADSTR,</div>
<div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;                                &amp;lpNewRead, &amp;dwNewReadLen, fAnsi)) == NULL)</div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;            <span class="keywordflow">goto</span> end_scs;</div>
<div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160; </div>
<div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;    <span class="keywordflow">case</span> SCS_CHANGECLAUSE:</div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;       <span class="keywordflow">if</span> ( lpComp &amp;&amp;</div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;           (lpCompBuf = <a class="code" href="a00281.html#ac73b048e1ea844c9c87f27db2a4ecf15">InternalSCS_CHANGECLAUSE</a>(</div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;                                hImc, lpComp, dwCompLen, GCS_COMPSTR,</div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;                                (LPDWORD *)&amp;lpNewComp, &amp;dwNewCompLen, fAnsi)) == NULL)</div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;            <span class="keywordflow">goto</span> end_scs;</div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;        <span class="keywordflow">if</span> ( lpRead &amp;&amp;</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;            (lpReadBuf = <a class="code" href="a00281.html#ac73b048e1ea844c9c87f27db2a4ecf15">InternalSCS_CHANGECLAUSE</a>(</div>
<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;                                hImc, lpRead, dwReadLen, GCS_COMPREADSTR,</div>
<div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;                                (LPDWORD *)&amp;lpNewRead, &amp;dwNewReadLen, fAnsi)) == NULL)</div>
<div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;            <span class="keywordflow">goto</span> end_scs;</div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160; </div>
<div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;    }</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160; </div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;    <span class="keywordflow">if</span> (lpCompBuf != NULL) {</div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;        lpComp    = lpNewComp;</div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;        dwCompLen = dwNewCompLen;</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;    }</div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160; </div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;    <span class="keywordflow">if</span> (lpReadBuf != NULL) {</div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;        lpRead    = lpNewRead;</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;        dwReadLen = dwNewReadLen;</div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;    }</div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160; </div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;start_scs:</div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160; </div>
<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00281.html#a7beab0a027ce1eeac884a9e1db1e5a2f">CompositionString</a>(hImc, &amp;pInputContext, &amp;pCompStr) &lt;= 0)</div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;        <span class="keywordflow">goto</span> end_scs;</div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160; </div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;    <span class="keywordflow">switch</span> (dwIndex)</div>
<div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;    {</div>
<div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;    <span class="keywordflow">case</span> SCS_SETSTR:</div>
<div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;        fRet = TRUE;</div>
<div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160; </div>
<div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;    <span class="keywordflow">case</span> SCS_CHANGEATTR:</div>
<div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;        <span class="keywordflow">if</span> ( lpComp &amp;&amp;</div>
<div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;            !<a class="code" href="a00281.html#a228282da05ce7277689efd83c8e1fe2b">CheckAttribute</a>((LPBYTE)lpComp, dwCompLen,</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;                    (LPBYTE)((LPBYTE)pCompStr + pCompStr-&gt;dwCompAttrOffset),</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;                    pCompStr-&gt;dwCompAttrLen,</div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;                    (LPDWORD)((LPBYTE)pCompStr + pCompStr-&gt;dwCompClauseOffset),</div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;                    pCompStr-&gt;dwCompClauseLen)) <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160; </div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;        <span class="keywordflow">if</span> ( lpRead &amp;&amp;</div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;            !<a class="code" href="a00281.html#a228282da05ce7277689efd83c8e1fe2b">CheckAttribute</a>((LPBYTE)lpRead, dwReadLen,</div>
<div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;                    (LPBYTE)((LPBYTE)pCompStr + pCompStr-&gt;dwCompReadAttrOffset),</div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;                    pCompStr-&gt;dwCompReadAttrLen,</div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;                    (LPDWORD)((LPBYTE)pCompStr + pCompStr-&gt;dwCompReadClauseOffset),</div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160;                    pCompStr-&gt;dwCompReadClauseLen)) <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;        fRet = TRUE;</div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160; </div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;    <span class="keywordflow">case</span> SCS_CHANGECLAUSE:</div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;        <span class="keywordflow">if</span> ( lpComp &amp;&amp;</div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;            !<a class="code" href="a00281.html#ac4fda3550ecb4e129affafd9b7b42510">CheckClause</a>((LPDWORD)lpComp, dwCompLen,</div>
<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;                         (LPDWORD)((LPBYTE)pCompStr + pCompStr-&gt;dwCompClauseOffset),</div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;                         pCompStr-&gt;dwCompClauseLen)) <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;        <span class="keywordflow">if</span> ( lpRead &amp;&amp;</div>
<div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;            !<a class="code" href="a00281.html#ac4fda3550ecb4e129affafd9b7b42510">CheckClause</a>((LPDWORD)lpRead, dwReadLen,</div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;                         (LPDWORD)((LPBYTE)pCompStr + pCompStr-&gt;dwCompReadClauseOffset),</div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;                         pCompStr-&gt;dwCompReadClauseLen)) <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;        fRet = TRUE;</div>
<div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160; </div>
<div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;    }</div>
<div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160; </div>
<div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;    <a class="code" href="a00311.html#a4363eede481a6941c0b440711a64442c">ImmUnlockIMCC</a>(pInputContext-&gt;hCompStr);</div>
<div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;    <a class="code" href="a00311.html#a5d94d0239203482be832b9a8e6f67754">ImmUnlockIMC</a>(hImc);</div>
<div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160; </div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;end_scs:</div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160; </div>
<div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;    <span class="keywordflow">if</span> (fRet) {</div>
<div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;        fRet = (*pImeDpi-&gt;<a class="code" href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">pfn</a>.<a class="code" href="a02065.html#afd1b3649525facac4fe2bce0443fb46f">ImeSetCompositionString</a>)(hImc, dwIndex,</div>
<div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;                                    lpComp, dwCompLen, lpRead, dwReadLen);</div>
<div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160;    }</div>
<div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160; </div>
<div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;    <span class="keywordflow">if</span> (lpCompBuf != NULL)</div>
<div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;        <a class="code" href="a00293.html#ae6ef91973c6a6f95f9b95f0c2a7c3315">ImmLocalFree</a>(lpCompBuf);</div>
<div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;    <span class="keywordflow">if</span> (lpReadBuf != NULL)</div>
<div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;        <a class="code" href="a00293.html#ae6ef91973c6a6f95f9b95f0c2a7c3315">ImmLocalFree</a>(lpReadBuf);</div>
<div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160; </div>
<div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160;    <a class="code" href="a00311.html#a476139459ee89728a91d341e1b72fb39">ImmUnlockImeDpi</a>(pImeDpi);</div>
<div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160; </div>
<div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;    <span class="keywordflow">return</span> (fRet);</div>
<div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00281_source.html#l00223">CheckAttribute()</a>, <a class="el" href="a00281_source.html#l00269">CheckClause()</a>, <a class="el" href="a00281_source.html#l00182">CompositionString()</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00293_source.html#l00122">GetInputContextThread</a>, <a class="el" href="a00026_source.html#l03732">GetKeyboardLayout()</a>, <a class="el" href="a00344_source.html#l00067">tagIMEDPI::ImeInfo</a>, <a class="el" href="a00344_source.html#l00086">tagIMEDPI::_tagImeFunctions::ImeSetCompositionString</a>, <a class="el" href="a00293_source.html#l00107">ImmLocalFree</a>, <a class="el" href="a00311_source.html#l00649">ImmLockImeDpi()</a>, <a class="el" href="a00311_source.html#l00302">ImmUnlockIMC()</a>, <a class="el" href="a00311_source.html#l00399">ImmUnlockIMCC()</a>, <a class="el" href="a00311_source.html#l00678">ImmUnlockImeDpi()</a>, <a class="el" href="a00281_source.html#l00369">InternalSCS_CHANGEATTR()</a>, <a class="el" href="a00281_source.html#l00473">InternalSCS_CHANGECLAUSE()</a>, <a class="el" href="a00281_source.html#l00306">InternalSCS_SETSTR()</a>, <a class="el" href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">tagIMEDPI::pfn</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a> , 以及 <a class="el" href="a00371_source.html#l00132">RIPMSG1</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00281_source.html#l00147">ImmSetCompositionStringA()</a> , 以及 <a class="el" href="a00281_source.html#l00169">ImmSetCompositionStringW()</a>.</p>

</div>
</div>
<a id="a052f616554e546f5e09dfb7b7ecfab4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a052f616554e546f5e09dfb7b7ecfab4c">&#9670;&nbsp;</a></span>InquireIme()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL InquireIme </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00344.html#a62ef1d2de4f5999445749347090577a3">PIMEDPI</a>&#160;</td>
          <td class="paramname"><em>pImeDpi</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00296_source.html">immime.c</a> 第 <a class="el" href="a00296_source.html#l00021">21</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;{</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    WNDCLASS    wc;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    WCHAR       wszClassName[<a class="code" href="a00341.html#a1304466f7717c8f5e9a5cd3b3791ac37">IM_UI_CLASS_SIZE</a>];</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    PIMEINFO    pImeInfo = &amp;pImeDpi-&gt;<a class="code" href="a02061.html#acbd013b579c0b839717284fb40eb7fbe">ImeInfo</a>;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    (*pImeDpi-&gt;<a class="code" href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">pfn</a>.<a class="code" href="a02065.html#aada14c692732ac0e21032a40a289a5f4">ImeInquire</a>.<a class="code" href="a02065.html#ae2d5cfa68d0db23157c71f8c1760628d">w</a>)(pImeInfo, (PVOID)wszClassName, NULL);</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">     * parameter checking for each fields.</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keywordflow">if</span> (pImeInfo-&gt;dwPrivateDataSize == 0)</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        pImeInfo-&gt;dwPrivateDataSize = <span class="keyword">sizeof</span>(<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>);</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="keywordflow">if</span> (pImeInfo-&gt;fdwProperty &amp; ~(IME_PROP_ALL)) {</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;wrong property&quot;</span>);</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    }</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keywordflow">if</span> (pImeInfo-&gt;fdwConversionCaps &amp; ~(IME_CMODE_ALL)) {</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;wrong conversion capabilities&quot;</span>);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    }</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keywordflow">if</span> (pImeInfo-&gt;fdwSentenceCaps &amp; ~(IME_SMODE_ALL)) {</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;wrong sentence capabilities&quot;</span>);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    }</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keywordflow">if</span> (pImeInfo-&gt;fdwUICaps &amp; ~(UI_CAP_ALL)) {</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;wrong UI capabilities&quot;</span>);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    }</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keywordflow">if</span> (pImeInfo-&gt;fdwSCSCaps &amp; ~(SCS_CAP_ALL)) {</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;wrong set comp string capabilities&quot;</span>);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    }</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keywordflow">if</span> (pImeInfo-&gt;fdwSelectCaps &amp; ~(SELECT_CAP_ALL)) {</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;wrong select capabilities&quot;</span>);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    }</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keywordflow">if</span> (!(pImeInfo-&gt;fdwProperty &amp; IME_PROP_UNICODE)) {</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        ANSI_STRING     AnsiString;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        UNICODE_STRING  UnicodeString;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        RtlInitAnsiString(&amp;AnsiString, (LPSTR)wszClassName);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        UnicodeString.MaximumLength = (SHORT)<span class="keyword">sizeof</span>(pImeDpi-&gt;<a class="code" href="a02061.html#a119f856662bf620259f4e4cdf0ea7414">wszUIClass</a>);</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        UnicodeString.Buffer = pImeDpi-&gt;<a class="code" href="a02061.html#a119f856662bf620259f4e4cdf0ea7414">wszUIClass</a>;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        <span class="keywordflow">if</span> (!NT_SUCCESS(RtlAnsiStringToUnicodeString(&amp;UnicodeString,</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;                                                     &amp;AnsiString,</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                                                     FALSE))) {</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        }</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    }</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        RtlCopyMemory(pImeDpi-&gt;<a class="code" href="a02061.html#a119f856662bf620259f4e4cdf0ea7414">wszUIClass</a>, wszClassName, <span class="keyword">sizeof</span>(wszClassName));</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        pImeDpi-&gt;<a class="code" href="a02061.html#a119f856662bf620259f4e4cdf0ea7414">wszUIClass</a>[<a class="code" href="a00341.html#a1304466f7717c8f5e9a5cd3b3791ac37">IM_UI_CLASS_SIZE</a>-1] = L<span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    }</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keywordflow">if</span> (!GetClassInfoW((HINSTANCE)pImeDpi-&gt;<a class="code" href="a02061.html#a21338885a241e5327784b452bab0148d">hInst</a>, pImeDpi-&gt;<a class="code" href="a02061.html#a119f856662bf620259f4e4cdf0ea7414">wszUIClass</a>, &amp;wc)) {</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;UI class (%ws) not found in this IME&quot;</span>, pImeDpi-&gt;<a class="code" href="a02061.html#a119f856662bf620259f4e4cdf0ea7414">wszUIClass</a>);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (wc.cbWndExtra &lt; <span class="keyword">sizeof</span>(<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>) * 2) {</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;UI class cbWndExtra problem&quot;</span>);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    }</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00344_source.html#l00065">tagIMEDPI::hInst</a>, <a class="el" href="a00341_source.html#l00057">IM_UI_CLASS_SIZE</a>, <a class="el" href="a00344_source.html#l00067">tagIMEDPI::ImeInfo</a>, <a class="el" href="a02065.html#aada14c692732ac0e21032a40a289a5f4">tagIMEDPI::_tagImeFunctions::ImeInquire</a>, <a class="el" href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">tagIMEDPI::pfn</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00131">RIPMSG0</a>, <a class="el" href="a00371_source.html#l00132">RIPMSG1</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00344_source.html#l00072">tagIMEDPI::_tagImeFunctions::w</a> , 以及 <a class="el" href="a00344_source.html#l00068">tagIMEDPI::wszUIClass</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00296_source.html#l00097">LoadIME()</a>.</p>

</div>
</div>
<a id="a9fb668b6f2ddb30602d6bcfe784d371d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9fb668b6f2ddb30602d6bcfe784d371d">&#9670;&nbsp;</a></span>InternalGetCandidateListAtoW()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> InternalGetCandidateListAtoW </td>
          <td>(</td>
          <td class="paramtype">LPCANDIDATELIST&#160;</td>
          <td class="paramname"><em>lpCandListA</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPCANDIDATELIST&#160;</td>
          <td class="paramname"><em>lpCandListW</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwBufLen</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00281_source.html">ctxtinfo.c</a> 第 <a class="el" href="a00281_source.html#l02649">2649</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02653"></a><span class="lineno"> 2653</span>&#160;{</div>
<div class="line"><a name="l02654"></a><span class="lineno"> 2654</span>&#160;    LPWSTR lpCandStrW;</div>
<div class="line"><a name="l02655"></a><span class="lineno"> 2655</span>&#160;    LPSTR  lpCandStrA;</div>
<div class="line"><a name="l02656"></a><span class="lineno"> 2656</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>    i, j;</div>
<div class="line"><a name="l02657"></a><span class="lineno"> 2657</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>  dwCandListLen;</div>
<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span>&#160; </div>
<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span>&#160;    dwCandListLen = <span class="keyword">sizeof</span>(CANDIDATELIST);</div>
<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span>&#160; </div>
<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span>&#160;<span class="comment">     * CANDIDATELIST has already contained the dwOffset[0]</span></div>
<div class="line"><a name="l02663"></a><span class="lineno"> 2663</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02664"></a><span class="lineno"> 2664</span>&#160;    <span class="keywordflow">if</span> (lpCandListA-&gt;dwCount &gt; 0)</div>
<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span>&#160;        dwCandListLen += <span class="keyword">sizeof</span>(<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>) * (lpCandListA-&gt;dwCount - 1);</div>
<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span>&#160; </div>
<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)lpCandListA-&gt;dwCount; i++) {</div>
<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span>&#160; </div>
<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span>&#160;        lpCandStrA = (LPSTR)((LPBYTE)lpCandListA + lpCandListA-&gt;dwOffset[i]);</div>
<div class="line"><a name="l02670"></a><span class="lineno"> 2670</span>&#160; </div>
<div class="line"><a name="l02671"></a><span class="lineno"> 2671</span>&#160;        j = <a class="code" href="a00941.html#ab5fefa29de8bde48a74efa8d838bf2d7">MultiByteToWideChar</a>(CP_ACP,</div>
<div class="line"><a name="l02672"></a><span class="lineno"> 2672</span>&#160;                                (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)MB_PRECOMPOSED,</div>
<div class="line"><a name="l02673"></a><span class="lineno"> 2673</span>&#160;                                lpCandStrA,</div>
<div class="line"><a name="l02674"></a><span class="lineno"> 2674</span>&#160;                                -1,</div>
<div class="line"><a name="l02675"></a><span class="lineno"> 2675</span>&#160;                                (LPWSTR)NULL,</div>
<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span>&#160;                                0);</div>
<div class="line"><a name="l02677"></a><span class="lineno"> 2677</span>&#160; </div>
<div class="line"><a name="l02678"></a><span class="lineno"> 2678</span>&#160;        dwCandListLen += (j * <span class="keyword">sizeof</span>(WCHAR));</div>
<div class="line"><a name="l02679"></a><span class="lineno"> 2679</span>&#160;    }</div>
<div class="line"><a name="l02680"></a><span class="lineno"> 2680</span>&#160; </div>
<div class="line"><a name="l02681"></a><span class="lineno"> 2681</span>&#160;    dwCandListLen = <a class="code" href="a00293.html#adc27486f01a116d0c0eaeb809b796060">DWORD_ALIGN</a>(dwCandListLen);</div>
<div class="line"><a name="l02682"></a><span class="lineno"> 2682</span>&#160; </div>
<div class="line"><a name="l02683"></a><span class="lineno"> 2683</span>&#160;    <span class="keywordflow">if</span> (dwBufLen == 0)</div>
<div class="line"><a name="l02684"></a><span class="lineno"> 2684</span>&#160;        <span class="keywordflow">return</span> dwCandListLen;</div>
<div class="line"><a name="l02685"></a><span class="lineno"> 2685</span>&#160; </div>
<div class="line"><a name="l02686"></a><span class="lineno"> 2686</span>&#160;    <span class="keywordflow">if</span> (dwBufLen &lt; dwCandListLen) {</div>
<div class="line"><a name="l02687"></a><span class="lineno"> 2687</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;InternalGetCandidateListAtoW: dwBufLen too small.&quot;</span>);</div>
<div class="line"><a name="l02688"></a><span class="lineno"> 2688</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l02689"></a><span class="lineno"> 2689</span>&#160;    }</div>
<div class="line"><a name="l02690"></a><span class="lineno"> 2690</span>&#160; </div>
<div class="line"><a name="l02691"></a><span class="lineno"> 2691</span>&#160;    lpCandListW-&gt;dwSize = dwBufLen;</div>
<div class="line"><a name="l02692"></a><span class="lineno"> 2692</span>&#160;    lpCandListW-&gt;dwStyle = lpCandListA-&gt;dwStyle;</div>
<div class="line"><a name="l02693"></a><span class="lineno"> 2693</span>&#160;    lpCandListW-&gt;dwCount = lpCandListA-&gt;dwCount;</div>
<div class="line"><a name="l02694"></a><span class="lineno"> 2694</span>&#160;    lpCandListW-&gt;dwSelection = lpCandListA-&gt;dwSelection;</div>
<div class="line"><a name="l02695"></a><span class="lineno"> 2695</span>&#160;    lpCandListW-&gt;dwPageStart = lpCandListA-&gt;dwPageStart;</div>
<div class="line"><a name="l02696"></a><span class="lineno"> 2696</span>&#160;    lpCandListW-&gt;dwPageSize = lpCandListA-&gt;dwPageSize;</div>
<div class="line"><a name="l02697"></a><span class="lineno"> 2697</span>&#160;    lpCandListW-&gt;dwOffset[0] = <span class="keyword">sizeof</span>(CANDIDATELIST);</div>
<div class="line"><a name="l02698"></a><span class="lineno"> 2698</span>&#160;    <span class="keywordflow">if</span> (lpCandListW-&gt;dwCount &gt; 0)</div>
<div class="line"><a name="l02699"></a><span class="lineno"> 2699</span>&#160;        lpCandListW-&gt;dwOffset[0] += <span class="keyword">sizeof</span>(<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>) * (lpCandListW-&gt;dwCount - 1);</div>
<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span>&#160; </div>
<div class="line"><a name="l02701"></a><span class="lineno"> 2701</span>&#160;    dwCandListLen = dwBufLen - lpCandListW-&gt;dwOffset[0];</div>
<div class="line"><a name="l02702"></a><span class="lineno"> 2702</span>&#160; </div>
<div class="line"><a name="l02703"></a><span class="lineno"> 2703</span>&#160;    <span class="keywordflow">for</span>  (i = 0; i &lt; (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)lpCandListW-&gt;dwCount; i++) {</div>
<div class="line"><a name="l02704"></a><span class="lineno"> 2704</span>&#160; </div>
<div class="line"><a name="l02705"></a><span class="lineno"> 2705</span>&#160;        lpCandStrA = (LPSTR) ((LPBYTE)lpCandListA + lpCandListA-&gt;dwOffset[i]);</div>
<div class="line"><a name="l02706"></a><span class="lineno"> 2706</span>&#160;        lpCandStrW = (LPWSTR)((LPBYTE)lpCandListW + lpCandListW-&gt;dwOffset[i]);</div>
<div class="line"><a name="l02707"></a><span class="lineno"> 2707</span>&#160; </div>
<div class="line"><a name="l02708"></a><span class="lineno"> 2708</span>&#160;        j = <a class="code" href="a00941.html#ab5fefa29de8bde48a74efa8d838bf2d7">MultiByteToWideChar</a>(CP_ACP,</div>
<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span>&#160;                                (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)MB_PRECOMPOSED,</div>
<div class="line"><a name="l02710"></a><span class="lineno"> 2710</span>&#160;                                lpCandStrA,</div>
<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span>&#160;                                -1,</div>
<div class="line"><a name="l02712"></a><span class="lineno"> 2712</span>&#160;                                lpCandStrW,</div>
<div class="line"><a name="l02713"></a><span class="lineno"> 2713</span>&#160;                                (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)dwCandListLen/<span class="keyword">sizeof</span>(WCHAR));</div>
<div class="line"><a name="l02714"></a><span class="lineno"> 2714</span>&#160; </div>
<div class="line"><a name="l02715"></a><span class="lineno"> 2715</span>&#160;        dwCandListLen -= (j * <span class="keyword">sizeof</span>(WCHAR));</div>
<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span>&#160; </div>
<div class="line"><a name="l02717"></a><span class="lineno"> 2717</span>&#160;        <span class="keywordflow">if</span> (i &lt; (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)lpCandListW-&gt;dwCount - 1)</div>
<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span>&#160;            lpCandListW-&gt;dwOffset[i+1] = lpCandListW-&gt;dwOffset[i] + j * <span class="keyword">sizeof</span>(WCHAR);</div>
<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span>&#160;    }</div>
<div class="line"><a name="l02720"></a><span class="lineno"> 2720</span>&#160; </div>
<div class="line"><a name="l02721"></a><span class="lineno"> 2721</span>&#160;    <span class="keywordflow">return</span> dwBufLen;</div>
<div class="line"><a name="l02722"></a><span class="lineno"> 2722</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00293_source.html#l00130">DWORD_ALIGN</a>, <a class="el" href="a00941.html#ab5fefa29de8bde48a74efa8d838bf2d7">MultiByteToWideChar()</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a> , 以及 <a class="el" href="a00371_source.html#l00131">RIPMSG0</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00281_source.html#l00750">ImmGetCandidateListCountWorker()</a>, <a class="el" href="a00281_source.html#l00883">ImmGetCandidateListWorker()</a>, <a class="el" href="a00281_source.html#l01753">ImmGetConversionListW()</a> , 以及 <a class="el" href="a00281_source.html#l01038">ImmGetGuideLineWorker()</a>.</p>

</div>
</div>
<a id="a2d8525c61132e88d7cbc60f12d725aa1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d8525c61132e88d7cbc60f12d725aa1">&#9670;&nbsp;</a></span>InternalGetCandidateListWtoA()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> InternalGetCandidateListWtoA </td>
          <td>(</td>
          <td class="paramtype">LPCANDIDATELIST&#160;</td>
          <td class="paramname"><em>lpCandListW</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPCANDIDATELIST&#160;</td>
          <td class="paramname"><em>lpCandListA</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwBufLen</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00281_source.html">ctxtinfo.c</a> 第 <a class="el" href="a00281_source.html#l02725">2725</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02729"></a><span class="lineno"> 2729</span>&#160;{</div>
<div class="line"><a name="l02730"></a><span class="lineno"> 2730</span>&#160;    LPWSTR lpCandStrW;</div>
<div class="line"><a name="l02731"></a><span class="lineno"> 2731</span>&#160;    LPSTR  lpCandStrA;</div>
<div class="line"><a name="l02732"></a><span class="lineno"> 2732</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>    i, j;</div>
<div class="line"><a name="l02733"></a><span class="lineno"> 2733</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>  dwCandListLen;</div>
<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span>&#160;    BOOL   bUDC;</div>
<div class="line"><a name="l02735"></a><span class="lineno"> 2735</span>&#160; </div>
<div class="line"><a name="l02736"></a><span class="lineno"> 2736</span>&#160;    dwCandListLen = <span class="keyword">sizeof</span>(CANDIDATELIST);</div>
<div class="line"><a name="l02737"></a><span class="lineno"> 2737</span>&#160; </div>
<div class="line"><a name="l02738"></a><span class="lineno"> 2738</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02739"></a><span class="lineno"> 2739</span>&#160;<span class="comment">     * CANDIDATELIST has already contained the dwOffset[0]</span></div>
<div class="line"><a name="l02740"></a><span class="lineno"> 2740</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02741"></a><span class="lineno"> 2741</span>&#160;    <span class="keywordflow">if</span> (lpCandListW-&gt;dwCount &gt; 0)</div>
<div class="line"><a name="l02742"></a><span class="lineno"> 2742</span>&#160;        dwCandListLen += <span class="keyword">sizeof</span>(<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>) * (lpCandListW-&gt;dwCount - 1);</div>
<div class="line"><a name="l02743"></a><span class="lineno"> 2743</span>&#160; </div>
<div class="line"><a name="l02744"></a><span class="lineno"> 2744</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)lpCandListW-&gt;dwCount; i++) {</div>
<div class="line"><a name="l02745"></a><span class="lineno"> 2745</span>&#160; </div>
<div class="line"><a name="l02746"></a><span class="lineno"> 2746</span>&#160;        lpCandStrW = (LPWSTR)((LPBYTE)lpCandListW + lpCandListW-&gt;dwOffset[i]);</div>
<div class="line"><a name="l02747"></a><span class="lineno"> 2747</span>&#160; </div>
<div class="line"><a name="l02748"></a><span class="lineno"> 2748</span>&#160;        j = <a class="code" href="a00941.html#aaf8b3ae5e2b40b6de6cc9377d53baa45">WideCharToMultiByte</a>(CP_ACP,</div>
<div class="line"><a name="l02749"></a><span class="lineno"> 2749</span>&#160;                                (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)0,</div>
<div class="line"><a name="l02750"></a><span class="lineno"> 2750</span>&#160;                                lpCandStrW,</div>
<div class="line"><a name="l02751"></a><span class="lineno"> 2751</span>&#160;                                -1,</div>
<div class="line"><a name="l02752"></a><span class="lineno"> 2752</span>&#160;                                (LPSTR)NULL,</div>
<div class="line"><a name="l02753"></a><span class="lineno"> 2753</span>&#160;                                (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)0,</div>
<div class="line"><a name="l02754"></a><span class="lineno"> 2754</span>&#160;                                (LPSTR)NULL,</div>
<div class="line"><a name="l02755"></a><span class="lineno"> 2755</span>&#160;                                (LPBOOL)&amp;bUDC);</div>
<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span>&#160; </div>
<div class="line"><a name="l02757"></a><span class="lineno"> 2757</span>&#160;        dwCandListLen += (j * <span class="keyword">sizeof</span>(<a class="code" href="a00953.html#aebb9e13210d88d43e32e735ada43a425">CHAR</a>));</div>
<div class="line"><a name="l02758"></a><span class="lineno"> 2758</span>&#160;    }</div>
<div class="line"><a name="l02759"></a><span class="lineno"> 2759</span>&#160; </div>
<div class="line"><a name="l02760"></a><span class="lineno"> 2760</span>&#160;    dwCandListLen = <a class="code" href="a00293.html#adc27486f01a116d0c0eaeb809b796060">DWORD_ALIGN</a>(dwCandListLen);</div>
<div class="line"><a name="l02761"></a><span class="lineno"> 2761</span>&#160; </div>
<div class="line"><a name="l02762"></a><span class="lineno"> 2762</span>&#160;    <span class="keywordflow">if</span> (dwBufLen == 0)</div>
<div class="line"><a name="l02763"></a><span class="lineno"> 2763</span>&#160;        <span class="keywordflow">return</span> dwCandListLen;</div>
<div class="line"><a name="l02764"></a><span class="lineno"> 2764</span>&#160; </div>
<div class="line"><a name="l02765"></a><span class="lineno"> 2765</span>&#160;    <span class="keywordflow">if</span> (dwBufLen &lt; dwCandListLen) {</div>
<div class="line"><a name="l02766"></a><span class="lineno"> 2766</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;InternalGetCandidateListWtoA: dwBufLen too small.&quot;</span>);</div>
<div class="line"><a name="l02767"></a><span class="lineno"> 2767</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l02768"></a><span class="lineno"> 2768</span>&#160;    }</div>
<div class="line"><a name="l02769"></a><span class="lineno"> 2769</span>&#160; </div>
<div class="line"><a name="l02770"></a><span class="lineno"> 2770</span>&#160;    lpCandListA-&gt;dwSize = dwBufLen;</div>
<div class="line"><a name="l02771"></a><span class="lineno"> 2771</span>&#160;    lpCandListA-&gt;dwStyle = lpCandListW-&gt;dwStyle;</div>
<div class="line"><a name="l02772"></a><span class="lineno"> 2772</span>&#160;    lpCandListA-&gt;dwCount = lpCandListW-&gt;dwCount;</div>
<div class="line"><a name="l02773"></a><span class="lineno"> 2773</span>&#160;    lpCandListA-&gt;dwSelection = lpCandListW-&gt;dwSelection;</div>
<div class="line"><a name="l02774"></a><span class="lineno"> 2774</span>&#160;    lpCandListA-&gt;dwPageStart = lpCandListW-&gt;dwPageStart;</div>
<div class="line"><a name="l02775"></a><span class="lineno"> 2775</span>&#160;    lpCandListA-&gt;dwPageSize = lpCandListW-&gt;dwPageSize;</div>
<div class="line"><a name="l02776"></a><span class="lineno"> 2776</span>&#160;    lpCandListA-&gt;dwOffset[0] = <span class="keyword">sizeof</span>(CANDIDATELIST);</div>
<div class="line"><a name="l02777"></a><span class="lineno"> 2777</span>&#160;    <span class="keywordflow">if</span> (lpCandListA-&gt;dwCount &gt; 0)</div>
<div class="line"><a name="l02778"></a><span class="lineno"> 2778</span>&#160;        lpCandListA-&gt;dwOffset[0] += <span class="keyword">sizeof</span>(<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>) * (lpCandListA-&gt;dwCount - 1);</div>
<div class="line"><a name="l02779"></a><span class="lineno"> 2779</span>&#160; </div>
<div class="line"><a name="l02780"></a><span class="lineno"> 2780</span>&#160;    dwCandListLen = dwBufLen - lpCandListA-&gt;dwOffset[0];</div>
<div class="line"><a name="l02781"></a><span class="lineno"> 2781</span>&#160; </div>
<div class="line"><a name="l02782"></a><span class="lineno"> 2782</span>&#160;    <span class="keywordflow">for</span>  (i = 0; i &lt; (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)lpCandListA-&gt;dwCount; i++) {</div>
<div class="line"><a name="l02783"></a><span class="lineno"> 2783</span>&#160; </div>
<div class="line"><a name="l02784"></a><span class="lineno"> 2784</span>&#160;        lpCandStrA = (LPSTR) ((LPBYTE)lpCandListA + lpCandListA-&gt;dwOffset[i]);</div>
<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span>&#160;        lpCandStrW = (LPWSTR)((LPBYTE)lpCandListW + lpCandListW-&gt;dwOffset[i]);</div>
<div class="line"><a name="l02786"></a><span class="lineno"> 2786</span>&#160; </div>
<div class="line"><a name="l02787"></a><span class="lineno"> 2787</span>&#160;        j = <a class="code" href="a00941.html#aaf8b3ae5e2b40b6de6cc9377d53baa45">WideCharToMultiByte</a>(CP_ACP,</div>
<div class="line"><a name="l02788"></a><span class="lineno"> 2788</span>&#160;                                (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)0,</div>
<div class="line"><a name="l02789"></a><span class="lineno"> 2789</span>&#160;                                lpCandStrW,</div>
<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span>&#160;                                -1,</div>
<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span>&#160;                                (LPSTR)lpCandStrA,</div>
<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span>&#160;                                (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)dwCandListLen,</div>
<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span>&#160;                                (LPSTR)NULL,</div>
<div class="line"><a name="l02794"></a><span class="lineno"> 2794</span>&#160;                                (LPBOOL)&amp;bUDC);</div>
<div class="line"><a name="l02795"></a><span class="lineno"> 2795</span>&#160; </div>
<div class="line"><a name="l02796"></a><span class="lineno"> 2796</span>&#160;        dwCandListLen -= (j * <span class="keyword">sizeof</span>(<a class="code" href="a00953.html#aebb9e13210d88d43e32e735ada43a425">CHAR</a>));</div>
<div class="line"><a name="l02797"></a><span class="lineno"> 2797</span>&#160; </div>
<div class="line"><a name="l02798"></a><span class="lineno"> 2798</span>&#160;        <span class="keywordflow">if</span> (i &lt; (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)lpCandListA-&gt;dwCount - 1)</div>
<div class="line"><a name="l02799"></a><span class="lineno"> 2799</span>&#160;            lpCandListA-&gt;dwOffset[i+1] = lpCandListA-&gt;dwOffset[i] + j * <span class="keyword">sizeof</span>(<a class="code" href="a00953.html#aebb9e13210d88d43e32e735ada43a425">CHAR</a>);</div>
<div class="line"><a name="l02800"></a><span class="lineno"> 2800</span>&#160;    }</div>
<div class="line"><a name="l02801"></a><span class="lineno"> 2801</span>&#160; </div>
<div class="line"><a name="l02802"></a><span class="lineno"> 2802</span>&#160;    <span class="keywordflow">return</span> dwBufLen;</div>
<div class="line"><a name="l02803"></a><span class="lineno"> 2803</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00293_source.html#l00130">DWORD_ALIGN</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00131">RIPMSG0</a> , 以及 <a class="el" href="a00941.html#aaf8b3ae5e2b40b6de6cc9377d53baa45">WideCharToMultiByte()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00281_source.html#l00750">ImmGetCandidateListCountWorker()</a>, <a class="el" href="a00281_source.html#l00883">ImmGetCandidateListWorker()</a>, <a class="el" href="a00281_source.html#l01633">ImmGetConversionListA()</a> , 以及 <a class="el" href="a00281_source.html#l01038">ImmGetGuideLineWorker()</a>.</p>

</div>
</div>
<a id="a0a2ea8ec94d9eb9147d2fd6f208b7d2f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a2ea8ec94d9eb9147d2fd6f208b7d2f">&#9670;&nbsp;</a></span>InternalGetCompositionStringA()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LONG InternalGetCompositionStringA </td>
          <td>(</td>
          <td class="paramtype">LPCOMPOSITIONSTRING&#160;</td>
          <td class="paramname"><em>lpCompStr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPVOID&#160;</td>
          <td class="paramname"><em>lpBuf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwBufLen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fAnsiImc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="abed43996af903dc773974eb9983b75b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abed43996af903dc773974eb9983b75b4">&#9670;&nbsp;</a></span>InternalGetCompositionStringW()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LONG InternalGetCompositionStringW </td>
          <td>(</td>
          <td class="paramtype">LPCOMPOSITIONSTRING&#160;</td>
          <td class="paramname"><em>lpCompStr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPVOID&#160;</td>
          <td class="paramname"><em>lpBuf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwBufLen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fAnsiImc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a6beb4de33e1df8824bfce43223697ee3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6beb4de33e1df8824bfce43223697ee3">&#9670;&nbsp;</a></span>LFontAtoLFontW()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID LFontAtoLFontW </td>
          <td>(</td>
          <td class="paramtype">LPLOGFONTA&#160;</td>
          <td class="paramname"><em>lfFontA</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPLOGFONTW&#160;</td>
          <td class="paramname"><em>lfFontW</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00281_source.html">ctxtinfo.c</a> 第 <a class="el" href="a00281_source.html#l02873">2873</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02876"></a><span class="lineno"> 2876</span>&#160;{</div>
<div class="line"><a name="l02877"></a><span class="lineno"> 2877</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> i;</div>
<div class="line"><a name="l02878"></a><span class="lineno"> 2878</span>&#160; </div>
<div class="line"><a name="l02879"></a><span class="lineno"> 2879</span>&#160;    RtlCopyMemory(lpLogFontW, lpLogFontA, <span class="keyword">sizeof</span>(LOGFONTA)-LF_FACESIZE);</div>
<div class="line"><a name="l02880"></a><span class="lineno"> 2880</span>&#160; </div>
<div class="line"><a name="l02881"></a><span class="lineno"> 2881</span>&#160;    i = <a class="code" href="a00941.html#ab5fefa29de8bde48a74efa8d838bf2d7">MultiByteToWideChar</a>(CP_ACP,</div>
<div class="line"><a name="l02882"></a><span class="lineno"> 2882</span>&#160;                            MB_PRECOMPOSED,</div>
<div class="line"><a name="l02883"></a><span class="lineno"> 2883</span>&#160;                            lpLogFontA-&gt;lfFaceName,</div>
<div class="line"><a name="l02884"></a><span class="lineno"> 2884</span>&#160;                            strlen(lpLogFontA-&gt;lfFaceName),</div>
<div class="line"><a name="l02885"></a><span class="lineno"> 2885</span>&#160;                            lpLogFontW-&gt;lfFaceName,</div>
<div class="line"><a name="l02886"></a><span class="lineno"> 2886</span>&#160;                            LF_FACESIZE);</div>
<div class="line"><a name="l02887"></a><span class="lineno"> 2887</span>&#160; </div>
<div class="line"><a name="l02888"></a><span class="lineno"> 2888</span>&#160;    lpLogFontW-&gt;lfFaceName[i] = L<span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l02889"></a><span class="lineno"> 2889</span>&#160; </div>
<div class="line"><a name="l02890"></a><span class="lineno"> 2890</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02891"></a><span class="lineno"> 2891</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00941.html#ab5fefa29de8bde48a74efa8d838bf2d7">MultiByteToWideChar()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00281_source.html#l01471">ImmGetCompositionFontW()</a>, <a class="el" href="a00281_source.html#l01522">ImmSetCompositionFontA()</a> , 以及 <a class="el" href="a00278_source.html#l00597">SelectInputContext()</a>.</p>

</div>
</div>
<a id="a0bb8f7d7daf939f1d2cf5828e8ded286"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0bb8f7d7daf939f1d2cf5828e8ded286">&#9670;&nbsp;</a></span>LFontWtoLFontA()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID LFontWtoLFontA </td>
          <td>(</td>
          <td class="paramtype">LPLOGFONTW&#160;</td>
          <td class="paramname"><em>lfFontW</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPLOGFONTA&#160;</td>
          <td class="paramname"><em>lfFontA</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00281_source.html">ctxtinfo.c</a> 第 <a class="el" href="a00281_source.html#l02894">2894</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02897"></a><span class="lineno"> 2897</span>&#160;{</div>
<div class="line"><a name="l02898"></a><span class="lineno"> 2898</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>  i;</div>
<div class="line"><a name="l02899"></a><span class="lineno"> 2899</span>&#160;    BOOL bUDC;</div>
<div class="line"><a name="l02900"></a><span class="lineno"> 2900</span>&#160; </div>
<div class="line"><a name="l02901"></a><span class="lineno"> 2901</span>&#160;    RtlCopyMemory(lpLogFontA, lpLogFontW, <span class="keyword">sizeof</span>(LOGFONTA)-LF_FACESIZE);</div>
<div class="line"><a name="l02902"></a><span class="lineno"> 2902</span>&#160; </div>
<div class="line"><a name="l02903"></a><span class="lineno"> 2903</span>&#160;    i = <a class="code" href="a00941.html#aaf8b3ae5e2b40b6de6cc9377d53baa45">WideCharToMultiByte</a>(CP_ACP,</div>
<div class="line"><a name="l02904"></a><span class="lineno"> 2904</span>&#160;                            0,</div>
<div class="line"><a name="l02905"></a><span class="lineno"> 2905</span>&#160;                            lpLogFontW-&gt;lfFaceName,</div>
<div class="line"><a name="l02906"></a><span class="lineno"> 2906</span>&#160;                            wcslen(lpLogFontW-&gt;lfFaceName),</div>
<div class="line"><a name="l02907"></a><span class="lineno"> 2907</span>&#160;                            lpLogFontA-&gt;lfFaceName,</div>
<div class="line"><a name="l02908"></a><span class="lineno"> 2908</span>&#160;                            LF_FACESIZE,</div>
<div class="line"><a name="l02909"></a><span class="lineno"> 2909</span>&#160;                            (LPSTR)NULL,</div>
<div class="line"><a name="l02910"></a><span class="lineno"> 2910</span>&#160;                            &amp;bUDC);</div>
<div class="line"><a name="l02911"></a><span class="lineno"> 2911</span>&#160; </div>
<div class="line"><a name="l02912"></a><span class="lineno"> 2912</span>&#160;    lpLogFontA-&gt;lfFaceName[i] = <span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l02913"></a><span class="lineno"> 2913</span>&#160; </div>
<div class="line"><a name="l02914"></a><span class="lineno"> 2914</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02915"></a><span class="lineno"> 2915</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00941.html#aaf8b3ae5e2b40b6de6cc9377d53baa45">WideCharToMultiByte()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00281_source.html#l01411">ImmGetCompositionFontA()</a>, <a class="el" href="a00281_source.html#l01573">ImmSetCompositionFontW()</a> , 以及 <a class="el" href="a00278_source.html#l00597">SelectInputContext()</a>.</p>

</div>
</div>
<a id="a082414a7811f5933c662d680f291cde4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a082414a7811f5933c662d680f291cde4">&#9670;&nbsp;</a></span>LoadIME()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL LoadIME </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00341.html#a25e40eacaa986803eb17bafd33ae4dae">PIMEINFOEX</a>&#160;</td>
          <td class="paramname"><em>piiex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00344.html#a62ef1d2de4f5999445749347090577a3">PIMEDPI</a>&#160;</td>
          <td class="paramname"><em>pImeDpi</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00296_source.html">immime.c</a> 第 <a class="el" href="a00296_source.html#l00097">97</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;{</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    WCHAR wszImeFile[MAX_PATH];</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    BOOL  fSuccess;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>  i;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    i = GetSystemDirectoryW(wszImeFile, MAX_PATH);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    wszImeFile[i] = L<span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <a class="code" href="a00293.html#a05aae3da8b024bc1c769b9b9d9b664f9">AddBackslash</a>(wszImeFile);</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    wcscat(wszImeFile, piiex-&gt;<a class="code" href="a02053.html#a0a3a84deefbb80ce558a51542d96d9d4">wszImeFile</a>);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    pImeDpi-&gt;<a class="code" href="a02061.html#a21338885a241e5327784b452bab0148d">hInst</a> = LoadLibraryW(wszImeFile);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="keywordflow">if</span> (!pImeDpi-&gt;<a class="code" href="a02061.html#a21338885a241e5327784b452bab0148d">hInst</a>) {</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;LoadIME: LoadLibraryW(%ws) failed&quot;</span>, wszImeFile);</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        <span class="keywordflow">goto</span> LoadIME_ErrOut;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    }</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="preprocessor">#define GET_IMEPROCT(x) \</span></div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor">    if (!(pImeDpi-&gt;pfn.##x.t = (PVOID) GetProcAddress(pImeDpi-&gt;hInst, #x))) { \</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="preprocessor">        RIPMSG1(RIP_WARNING, &quot;LoadIME: &quot; #x &quot; not supported in %ws&quot;, wszImeFile);           \</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="preprocessor">        goto LoadIME_ErrOut; }</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="preprocessor">#define GET_IMEPROC(x) \</span></div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor">    if (!(pImeDpi-&gt;pfn.##x = (PVOID) GetProcAddress(pImeDpi-&gt;hInst, #x))) {   \</span></div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="preprocessor">        RIPMSG1(RIP_WARNING, &quot;LoadIME: &quot; #x &quot; not supported in %ws&quot;, wszImeFile);           \</span></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="preprocessor">        goto LoadIME_ErrOut; }</span></div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <a class="code" href="a00296.html#ab932e5b676f588f559338489d59642d2">GET_IMEPROCT</a>(ImeInquire);</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <a class="code" href="a00296.html#ab932e5b676f588f559338489d59642d2">GET_IMEPROCT</a>(ImeConversionList);</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <a class="code" href="a00296.html#ab932e5b676f588f559338489d59642d2">GET_IMEPROCT</a>(ImeRegisterWord);</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <a class="code" href="a00296.html#ab932e5b676f588f559338489d59642d2">GET_IMEPROCT</a>(ImeUnregisterWord);</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <a class="code" href="a00296.html#ab932e5b676f588f559338489d59642d2">GET_IMEPROCT</a>(ImeGetRegisterWordStyle);</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <a class="code" href="a00296.html#ab932e5b676f588f559338489d59642d2">GET_IMEPROCT</a>(ImeEnumRegisterWord);</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <a class="code" href="a00296.html#a6c7adde846a09f0c21df6d382d983b08">GET_IMEPROC</a> (ImeConfigure);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <a class="code" href="a00296.html#a6c7adde846a09f0c21df6d382d983b08">GET_IMEPROC</a> (ImeDestroy);</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <a class="code" href="a00296.html#a6c7adde846a09f0c21df6d382d983b08">GET_IMEPROC</a> (ImeEscape);</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <a class="code" href="a00296.html#a6c7adde846a09f0c21df6d382d983b08">GET_IMEPROC</a> (ImeProcessKey);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <a class="code" href="a00296.html#a6c7adde846a09f0c21df6d382d983b08">GET_IMEPROC</a> (ImeSelect);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <a class="code" href="a00296.html#a6c7adde846a09f0c21df6d382d983b08">GET_IMEPROC</a> (ImeSetActiveContext);</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <a class="code" href="a00296.html#a6c7adde846a09f0c21df6d382d983b08">GET_IMEPROC</a> (ImeToAsciiEx);</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <a class="code" href="a00296.html#a6c7adde846a09f0c21df6d382d983b08">GET_IMEPROC</a> (NotifyIME);</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    <a class="code" href="a00296.html#a6c7adde846a09f0c21df6d382d983b08">GET_IMEPROC</a> (ImeSetCompositionString);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160; </div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;<span class="preprocessor">#undef GET_IMEPROCT</span></div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="preprocessor">#undef GET_IMEPROC</span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keywordflow">if</span> (!<a class="code" href="a00296.html#a052f616554e546f5e09dfb7b7ecfab4c">InquireIme</a>(pImeDpi)) {</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;LoadIME: InquireIme failed&quot;</span>);</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;LoadIME_ErrOut:</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;        FreeLibrary(pImeDpi-&gt;<a class="code" href="a02061.html#a21338885a241e5327784b452bab0148d">hInst</a>);</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        pImeDpi-&gt;<a class="code" href="a02061.html#a21338885a241e5327784b452bab0148d">hInst</a> = NULL;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        fSuccess = FALSE;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    }</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;        fSuccess = TRUE;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    }</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160; </div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="comment">     * Update kernel side IMEINFOEX for this keyboard layout if</span></div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="comment">     * this is its first loading.</span></div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <span class="keywordflow">if</span> (piiex-&gt;<a class="code" href="a02053.html#aca1095cbcd4e269fd414475cea47a463">fLoadFlag</a> == <a class="code" href="a00341.html#ab070ce633144ec802e93fe55015435ab">IMEF_NONLOAD</a>) {</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        <span class="keywordflow">if</span> (fSuccess) {</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;            RtlCopyMemory((PBYTE)&amp;piiex-&gt;<a class="code" href="a02053.html#acbd013b579c0b839717284fb40eb7fbe">ImeInfo</a>,</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;                          (PBYTE)&amp;pImeDpi-&gt;<a class="code" href="a02061.html#acbd013b579c0b839717284fb40eb7fbe">ImeInfo</a>, <span class="keyword">sizeof</span>(IMEINFO));</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;            RtlCopyMemory((PBYTE)piiex-&gt;<a class="code" href="a02053.html#a119f856662bf620259f4e4cdf0ea7414">wszUIClass</a>,</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;                          (PBYTE)pImeDpi-&gt;<a class="code" href="a02061.html#a119f856662bf620259f4e4cdf0ea7414">wszUIClass</a>, <span class="keyword">sizeof</span>(pImeDpi-&gt;<a class="code" href="a02061.html#a119f856662bf620259f4e4cdf0ea7414">wszUIClass</a>));</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;            piiex-&gt;<a class="code" href="a02053.html#aca1095cbcd4e269fd414475cea47a463">fLoadFlag</a> = <a class="code" href="a00341.html#a9fb5b19393d85537848795a83e2ce2a9">IMEF_LOADED</a>;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        }</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;            piiex-&gt;<a class="code" href="a02053.html#aca1095cbcd4e269fd414475cea47a463">fLoadFlag</a> = <a class="code" href="a00341.html#aab2b0794609c3d5c18992125e5950697">IMEF_LOADERROR</a>;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        }</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        <a class="code" href="a00341.html#adc7ae3a885ca6232a56041256e96e8a4">NtUserSetImeInfoEx</a>(piiex);</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    }</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    <span class="keywordflow">return</span> fSuccess;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00305_source.html#l00094">AddBackslash()</a>, <a class="el" href="a00341_source.html#l00087">tagIMEINFOEX::fLoadFlag</a>, <a class="el" href="a00296.html#a6c7adde846a09f0c21df6d382d983b08">GET_IMEPROC</a>, <a class="el" href="a00296.html#ab932e5b676f588f559338489d59642d2">GET_IMEPROCT</a>, <a class="el" href="a00344_source.html#l00065">tagIMEDPI::hInst</a>, <a class="el" href="a00341_source.html#l00052">IMEF_LOADED</a>, <a class="el" href="a00341_source.html#l00051">IMEF_LOADERROR</a>, <a class="el" href="a00341_source.html#l00050">IMEF_NONLOAD</a>, <a class="el" href="a00344_source.html#l00067">tagIMEDPI::ImeInfo</a>, <a class="el" href="a00341_source.html#l00083">tagIMEINFOEX::ImeInfo</a>, <a class="el" href="a00296_source.html#l00021">InquireIme()</a>, <a class="el" href="a00341.html#adc7ae3a885ca6232a56041256e96e8a4">NtUserSetImeInfoEx()</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00131">RIPMSG0</a>, <a class="el" href="a00371_source.html#l00132">RIPMSG1</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00341_source.html#l00091">tagIMEINFOEX::wszImeFile</a>, <a class="el" href="a00344_source.html#l00068">tagIMEDPI::wszUIClass</a> , 以及 <a class="el" href="a00341_source.html#l00084">tagIMEINFOEX::wszUIClass</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00296_source.html#l00204">FindOrLoadImeDpi()</a>.</p>

</div>
</div>
<a id="aeee10f6fbed98613f0a627e327f6747b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeee10f6fbed98613f0a627e327f6747b">&#9670;&nbsp;</a></span>LoadVersionInfo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL LoadVersionInfo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00341.html#a25e40eacaa986803eb17bafd33ae4dae">PIMEINFOEX</a>&#160;</td>
          <td class="paramname"><em>piiex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00305_source.html">layime.c</a> 第 <a class="el" href="a00305_source.html#l00312">312</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;{</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    WCHAR   szPath[MAX_PATH];</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;    PWSTR   pszVersionBuffer;</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    HANDLE  hVersion;</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>   dwVersionSize;</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>   dwHandle = 0;</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    BOOL    fUnload, fReturn = FALSE;</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>    uSize;</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160; </div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    hVersion = GetModuleHandle(<a class="code" href="a00305.html#a6cbf1274d424a12440575114100a6615">VERSION_DLL</a>);</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    <span class="keywordflow">if</span> (hVersion != NULL) {</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;        fUnload = FALSE;</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;    }</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;        hVersion = LoadLibrary(<a class="code" href="a00305.html#a6cbf1274d424a12440575114100a6615">VERSION_DLL</a>);</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;        <span class="keywordflow">if</span> (hVersion == NULL) {</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;        }</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;        fUnload = TRUE;</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;    }</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160; </div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;<span class="preprocessor">#define GET_PROC(x) \</span></div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;<span class="preprocessor">    if (!(pfn##x = (PVOID) GetProcAddress(hVersion, VERSION_##x))) { \</span></div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;<span class="preprocessor">        goto LoadVerInfoUnload; }</span></div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160; </div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;    <a class="code" href="a00305.html#a6a6ec1bc7f07c1a4dd22d7e905ad9b12">GET_PROC</a>(GetFileVersionInfoW);</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    <a class="code" href="a00305.html#a6a6ec1bc7f07c1a4dd22d7e905ad9b12">GET_PROC</a>(GetFileVersionInfoSizeW);</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;    <a class="code" href="a00305.html#a6a6ec1bc7f07c1a4dd22d7e905ad9b12">GET_PROC</a>(VerQueryValueW);</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160; </div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;<span class="preprocessor">#undef GET_PROC</span></div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160; </div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;    uSize = GetSystemDirectory(szPath, MAX_PATH);</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;    szPath[uSize] = L<span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    <a class="code" href="a00305.html#a05aae3da8b024bc1c769b9b9d9b664f9">AddBackslash</a>(szPath);</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160; </div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;    <span class="comment">// szPath = fully qualified IME file name</span></div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;    wcscat(szPath, piiex-&gt;<a class="code" href="a02053.html#a0a3a84deefbb80ce558a51542d96d9d4">wszImeFile</a>);</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160; </div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    dwVersionSize = (*pfnGetFileVersionInfoSizeW)(szPath, &amp;dwHandle);</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160; </div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;    <span class="keywordflow">if</span> (dwVersionSize == 0L) {</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;<span class="comment">         * If no version info. specified in IME,</span></div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;<span class="comment">         * use a IME file name as its description.</span></div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;        piiex-&gt;<a class="code" href="a02053.html#a7bbc78dead49cc9065a0c1ad01464df6">dwProdVersion</a> = 0;</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;        piiex-&gt;<a class="code" href="a02053.html#af908ac68f9d48c154fd2db472ff1f421">dwImeWinVersion</a> = 0;</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;        wsprintf(piiex-&gt;<a class="code" href="a02053.html#a8146bf57bb184ce1cdcf17f9a7847cbb">wszImeDescription</a>, L<span class="stringliteral">&quot;IME %s&quot;</span>, piiex-&gt;<a class="code" href="a02053.html#a0a3a84deefbb80ce558a51542d96d9d4">wszImeFile</a>);</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;        fReturn = TRUE;</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;        <span class="keywordflow">goto</span> LoadVerInfoUnload;</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    }</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160; </div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    pszVersionBuffer = (PWSTR)<a class="code" href="a00293.html#a3d753f884cab418538a34030823aa1d0">ImmLocalAlloc</a>(0, dwVersionSize);</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160; </div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;    <span class="keywordflow">if</span> (pszVersionBuffer == NULL)    <span class="comment">// can&#39;t get memory for version info, blow out</span></div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;        <span class="keywordflow">goto</span> LoadVerInfoUnload;</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160; </div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;    <span class="keywordflow">if</span> (!(*<a class="code" href="a00305.html#ac0090bf32338670f1fab48565d8f844a">pfnGetFileVersionInfoW</a>)(szPath, dwHandle, dwVersionSize, pszVersionBuffer))</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;        <span class="keywordflow">goto</span> LoadVerInfoFree;</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160; </div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;<span class="comment">     * Get the fixed block version information.</span></div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00305.html#a73f90b5a96d51c99c7d83b6ad872f4a3">LoadFixVersionInfo</a>(piiex, pszVersionBuffer)) {</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;<span class="comment">         * Get the variable block version information.</span></div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;        fReturn = <a class="code" href="a00305.html#a260b54633a9afaa5ea04216b29daa3a3">LoadVarVersionInfo</a>(piiex, pszVersionBuffer);</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;    }</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160; </div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;LoadVerInfoFree:</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;    <a class="code" href="a00293.html#ae6ef91973c6a6f95f9b95f0c2a7c3315">ImmLocalFree</a>((HLOCAL)pszVersionBuffer);</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160; </div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;LoadVerInfoUnload:</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;    <span class="keywordflow">if</span> (fUnload)</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;        FreeLibrary(hVersion);</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160; </div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;    <span class="keywordflow">return</span> fReturn;</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00305_source.html#l00094">AddBackslash()</a>, <a class="el" href="a00341_source.html#l00089">tagIMEINFOEX::dwImeWinVersion</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00341_source.html#l00088">tagIMEINFOEX::dwProdVersion</a>, <a class="el" href="a00305.html#a6a6ec1bc7f07c1a4dd22d7e905ad9b12">GET_PROC</a>, <a class="el" href="a00293_source.html#l00105">ImmLocalAlloc</a>, <a class="el" href="a00293_source.html#l00107">ImmLocalFree</a>, <a class="el" href="a00305_source.html#l00209">LoadFixVersionInfo()</a>, <a class="el" href="a00305_source.html#l00238">LoadVarVersionInfo()</a>, <a class="el" href="a00305_source.html#l00033">pfnGetFileVersionInfoW</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00305_source.html#l00016">VERSION_DLL</a>, <a class="el" href="a00341_source.html#l00090">tagIMEINFOEX::wszImeDescription</a> , 以及 <a class="el" href="a00341_source.html#l00091">tagIMEINFOEX::wszImeFile</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00305_source.html#l00038">ImmLoadLayout()</a>.</p>

</div>
</div>
<a id="acaea80354ded6256a41bd6afc2d50a81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acaea80354ded6256a41bd6afc2d50a81">&#9670;&nbsp;</a></span>MakeIMENotify()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL MakeIMENotify </td>
          <td>(</td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hImc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hWnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwValue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WPARAM&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPARAM&#160;</td>
          <td class="paramname"><em>lParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00281_source.html">ctxtinfo.c</a> 第 <a class="el" href="a00281_source.html#l02918">2918</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02926"></a><span class="lineno"> 2926</span>&#160;{</div>
<div class="line"><a name="l02927"></a><span class="lineno"> 2927</span>&#160;    <a class="code" href="a02061.html">PIMEDPI</a> pImeDpi;</div>
<div class="line"><a name="l02928"></a><span class="lineno"> 2928</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>   dwThreadId;</div>
<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span>&#160; </div>
<div class="line"><a name="l02930"></a><span class="lineno"> 2930</span>&#160;<span class="preprocessor">#ifdef LATER</span></div>
<div class="line"><a name="l02931"></a><span class="lineno"> 2931</span>&#160;    <span class="comment">// implement MakeIMENotifyEvent() later</span></div>
<div class="line"><a name="l02932"></a><span class="lineno"> 2932</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l02933"></a><span class="lineno"> 2933</span>&#160; </div>
<div class="line"><a name="l02934"></a><span class="lineno"> 2934</span>&#160;    <span class="keywordflow">if</span> (dwAction != 0 &amp;&amp; (dwThreadId = <a class="code" href="a00293.html#aa5b41822aa928c904209ff5ab3f734b7">GetInputContextThread</a>(hImc)) != 0) {</div>
<div class="line"><a name="l02935"></a><span class="lineno"> 2935</span>&#160; </div>
<div class="line"><a name="l02936"></a><span class="lineno"> 2936</span>&#160;        pImeDpi = <a class="code" href="a00311.html#a321a0bacc1c67d1fefea199d0c6f4612">ImmLockImeDpi</a>(<a class="code" href="a00026.html#a46278f8b1db32b9b4679eee6abc9e1b4">GetKeyboardLayout</a>(dwThreadId));</div>
<div class="line"><a name="l02937"></a><span class="lineno"> 2937</span>&#160; </div>
<div class="line"><a name="l02938"></a><span class="lineno"> 2938</span>&#160;        <span class="keywordflow">if</span> (pImeDpi != NULL) {</div>
<div class="line"><a name="l02939"></a><span class="lineno"> 2939</span>&#160;            (*pImeDpi-&gt;<a class="code" href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">pfn</a>.<a class="code" href="a02065.html#a515a62b2ac4cbf98eac675e57915d2c7">NotifyIME</a>)(hImc, dwAction, dwIndex, dwValue);</div>
<div class="line"><a name="l02940"></a><span class="lineno"> 2940</span>&#160;            <a class="code" href="a00311.html#a476139459ee89728a91d341e1b72fb39">ImmUnlockImeDpi</a>(pImeDpi);</div>
<div class="line"><a name="l02941"></a><span class="lineno"> 2941</span>&#160;        }</div>
<div class="line"><a name="l02942"></a><span class="lineno"> 2942</span>&#160;    }</div>
<div class="line"><a name="l02943"></a><span class="lineno"> 2943</span>&#160; </div>
<div class="line"><a name="l02944"></a><span class="lineno"> 2944</span>&#160;    <span class="keywordflow">if</span> (hWnd != NULL &amp;&amp; wParam != 0)</div>
<div class="line"><a name="l02945"></a><span class="lineno"> 2945</span>&#160;        SendMessage(hWnd, WM_IME_NOTIFY, wParam, lParam);</div>
<div class="line"><a name="l02946"></a><span class="lineno"> 2946</span>&#160; </div>
<div class="line"><a name="l02947"></a><span class="lineno"> 2947</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l02948"></a><span class="lineno"> 2948</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00293_source.html#l00122">GetInputContextThread</a>, <a class="el" href="a00026_source.html#l03732">GetKeyboardLayout()</a>, <a class="el" href="a00311_source.html#l00649">ImmLockImeDpi()</a>, <a class="el" href="a00311_source.html#l00678">ImmUnlockImeDpi()</a>, <a class="el" href="a00344_source.html#l00085">tagIMEDPI::_tagImeFunctions::NotifyIME</a> , 以及 <a class="el" href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">tagIMEDPI::pfn</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00281_source.html#l02040">ImmSetCandidateWindow()</a>, <a class="el" href="a00281_source.html#l01522">ImmSetCompositionFontA()</a>, <a class="el" href="a00281_source.html#l01573">ImmSetCompositionFontW()</a>, <a class="el" href="a00281_source.html#l01965">ImmSetCompositionWindow()</a>, <a class="el" href="a00281_source.html#l01262">ImmSetConversionStatus()</a>, <a class="el" href="a00281_source.html#l01364">ImmSetOpenStatus()</a> , 以及 <a class="el" href="a00281_source.html#l01901">ImmSetStatusWindowPos()</a>.</p>

</div>
</div>
<a id="a8315d2c807ba18ba9e528c40614b6173"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8315d2c807ba18ba9e528c40614b6173">&#9670;&nbsp;</a></span>PtiCurrent()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00365.html#a177dce23f2b497ba8dc22f5a92d3f3d3">PTHREADINFO</a> PtiCurrent </td>
          <td>(</td>
          <td class="paramtype">VOID&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00263_source.html">winmgrc.c</a> 第 <a class="el" href="a00263_source.html#l00526">526</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;{</div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;    <a class="code" href="a02889.html">PTHREADINFO</a> pti;</div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160; </div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;    pti = (<a class="code" href="a00365.html#a177dce23f2b497ba8dc22f5a92d3f3d3">PTHREADINFO</a>)NtCurrentTeb()-&gt;Win32ThreadInfo;</div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;    <span class="keywordflow">if</span> (pti == NULL) {</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a00362.html#a1a126aa946b044cf85f9a4ff5ae419de">NtUserGetThreadState</a>(-1) != (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)STATUS_SUCCESS)</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;            <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;        pti = (<a class="code" href="a00365.html#a177dce23f2b497ba8dc22f5a92d3f3d3">PTHREADINFO</a>)NtCurrentTeb()-&gt;Win32ThreadInfo;</div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;    }</div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160; </div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;    <span class="keywordflow">return</span> pti;</div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a> , 以及 <a class="el" href="a03614_source.html#l06224">NtUserGetThreadState()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00263_source.html#l00550">_AdjustWindowRectEx()</a>, <a class="el" href="a00263_source.html#l00211">GetWindowThreadProcessId()</a>, <a class="el" href="a00311_source.html#l00479">TestInputContextProcess()</a> , 以及 <a class="el" href="a00311_source.html#l00500">TestWindowProcess()</a>.</p>

</div>
</div>
<a id="a1ef2303b23e7d9e917ae428d637f3dcd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ef2303b23e7d9e917ae428d637f3dcd">&#9670;&nbsp;</a></span>SelectInputContext()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID SelectInputContext </td>
          <td>(</td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hSelKL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hUnSelKL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hImc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00278_source.html">context.c</a> 第 <a class="el" href="a00278_source.html#l00597">597</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;{</div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;    <a class="code" href="a02061.html">PIMEDPI</a>            pSelImeDpi, pUnSelImeDpi;</div>
<div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;    <a class="code" href="a02057.html">PCLIENTIMC</a>         pClientImc;</div>
<div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;    PINPUTCONTEXT      pInputContext;</div>
<div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>              dwSelPriv = 0, dwUnSelPriv = 0, dwSize;</div>
<div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;    HIMCC              hImcc;</div>
<div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;    PCOMPOSITIONSTRING pCompStr;</div>
<div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;    PCANDIDATEINFO     pCandInfo;</div>
<div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;    PGUIDELINE         pGuideLine;</div>
<div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;    BOOL               fLogFontInited;</div>
<div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160; </div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;    pClientImc = <a class="code" href="a00311.html#abad0a50d57502d3e8ec482dd68997ad9">ImmLockClientImc</a>(hImc);</div>
<div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;    <span class="keywordflow">if</span> (pClientImc == NULL)</div>
<div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160; </div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;    pSelImeDpi   = <a class="code" href="a00311.html#a321a0bacc1c67d1fefea199d0c6f4612">ImmLockImeDpi</a>(hSelKL);</div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;    pUnSelImeDpi = <a class="code" href="a00311.html#a321a0bacc1c67d1fefea199d0c6f4612">ImmLockImeDpi</a>(hUnSelKL);</div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160; </div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;<span class="comment">     * According to private memory size of the two layout, we decide</span></div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;<span class="comment">     * whether we nee to reallocate this memory block</span></div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;    <span class="keywordflow">if</span> (pSelImeDpi != NULL)</div>
<div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;        dwSelPriv = pSelImeDpi-&gt;<a class="code" href="a02061.html#acbd013b579c0b839717284fb40eb7fbe">ImeInfo</a>.dwPrivateDataSize;</div>
<div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160; </div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;    <span class="keywordflow">if</span> (pUnSelImeDpi != NULL)</div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;        dwUnSelPriv = pUnSelImeDpi-&gt;<a class="code" href="a02061.html#acbd013b579c0b839717284fb40eb7fbe">ImeInfo</a>.dwPrivateDataSize;</div>
<div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160; </div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;    dwSelPriv   = max(dwSelPriv,   <span class="keyword">sizeof</span>(<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>));</div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;    dwUnSelPriv = max(dwUnSelPriv, <span class="keyword">sizeof</span>(<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>));</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160; </div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;<span class="comment">     * Unselect the input context.</span></div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;    <span class="keywordflow">if</span> (pUnSelImeDpi != NULL)</div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;        (*pUnSelImeDpi-&gt;<a class="code" href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">pfn</a>.<a class="code" href="a02065.html#a3e3d7e9fd44032fbdaaa80c04d2e8e78">ImeSelect</a>)(hImc, FALSE);</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160; </div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;<span class="comment">     * Reinitialize the client side input context for the selected layout.</span></div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;    <span class="keywordflow">if</span> ((pInputContext = <a class="code" href="a00311.html#a93ced286ed15ec806746defb9a3ed34d">ImmLockIMC</a>(hImc)) != NULL) {</div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160; </div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;        fLogFontInited = ((pInputContext-&gt;fdwInit &amp; INIT_LOGFONT) == INIT_LOGFONT);</div>
<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160; </div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>) &amp;&amp; pSelImeDpi != NULL &amp;&amp;</div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;                !(pSelImeDpi-&gt;<a class="code" href="a02061.html#acbd013b579c0b839717284fb40eb7fbe">ImeInfo</a>.fdwProperty &amp; IME_PROP_UNICODE)) {</div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;<span class="comment">             * Check if there is any LOGFONT to be converted.</span></div>
<div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;            <span class="keywordflow">if</span> (fLogFontInited) {</div>
<div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;                LOGFONTA LogFontA;</div>
<div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160; </div>
<div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;                <a class="code" href="a00281.html#a449b51cb13f429ee038b04928aebf831">LFontWtoLFontA</a>(&amp;pInputContext-&gt;lfFont.W, &amp;LogFontA);</div>
<div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;                RtlCopyMemory(&amp;pInputContext-&gt;lfFont.A, &amp;LogFontA, <span class="keyword">sizeof</span>(LOGFONTA));</div>
<div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;            }</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160; </div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;            <a class="code" href="a00293.html#a6a2bb78ecf5a1bdd3c1d5d1710ccd011">ClrICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>);</div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;        }</div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!<a class="code" href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>) &amp;&amp; pSelImeDpi != NULL &amp;&amp;</div>
<div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;                 (pSelImeDpi-&gt;<a class="code" href="a02061.html#acbd013b579c0b839717284fb40eb7fbe">ImeInfo</a>.fdwProperty &amp; IME_PROP_UNICODE)) {</div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;<span class="comment">             * Check if there is any LOGFONT to be converted.</span></div>
<div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;            <span class="keywordflow">if</span> (fLogFontInited) {</div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;                LOGFONTW LogFontW;</div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160; </div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;                <a class="code" href="a00281.html#addd7f6406858edea31bd4540272df48d">LFontAtoLFontW</a>(&amp;pInputContext-&gt;lfFont.A, &amp;LogFontW);</div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;                RtlCopyMemory(&amp;pInputContext-&gt;lfFont.W, &amp;LogFontW, <span class="keyword">sizeof</span>(LOGFONTW));</div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;            }</div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160; </div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;            <a class="code" href="a00293.html#ac9a8b2084b3f85ce62924981d68efa1e">SetICF</a>(pClientImc, <a class="code" href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a>);</div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;        }</div>
<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160; </div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;<span class="comment">         * hPrivate</span></div>
<div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;        <span class="keywordflow">if</span> (dwUnSelPriv != dwSelPriv) {</div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;            hImcc = <a class="code" href="a00311.html#a280ace9bfd93d40801a1ad151e18cdc3">ImmReSizeIMCC</a>(pInputContext-&gt;hPrivate, dwSelPriv);</div>
<div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;            <span class="keywordflow">if</span> (hImcc) {</div>
<div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;                pInputContext-&gt;hPrivate = hImcc;</div>
<div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160;            }</div>
<div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;            <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160;                <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>,</div>
<div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;                      <span class="stringliteral">&quot;SelectContext: resize hPrivate %lX failure&quot;</span>,</div>
<div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;                      pInputContext-&gt;hPrivate);</div>
<div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;                <a class="code" href="a00311.html#a36785d16e41db2e18eb9dee6c4566850">ImmDestroyIMCC</a>(pInputContext-&gt;hPrivate);</div>
<div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;                pInputContext-&gt;hPrivate = <a class="code" href="a00311.html#abfbbdf31138ad5f8b5049178ddbe235a">ImmCreateIMCC</a>(dwSelPriv);</div>
<div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;            }</div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;        }</div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160; </div>
<div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;<span class="comment">         * hMsgBuf</span></div>
<div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160;        dwSize = <a class="code" href="a00311.html#aed5e56e3e55d9fec8d9c7aed6e5c38f6">ImmGetIMCCSize</a>(pInputContext-&gt;hMsgBuf);</div>
<div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160; </div>
<div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a00311.html#aa8607ca90f4dc47cfbce58d23d4ca524">ImmGetIMCCLockCount</a>(pInputContext-&gt;hMsgBuf) != 0 ||</div>
<div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;                dwSize &gt; <a class="code" href="a00278.html#ac93119d233852eca62492cabfbd285cc">IMCC_ALLOC_TOOLARGE</a>) {</div>
<div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160; </div>
<div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;            <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;SelectContext: create new hMsgBuf&quot;</span>);</div>
<div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160;            <a class="code" href="a00311.html#a36785d16e41db2e18eb9dee6c4566850">ImmDestroyIMCC</a>(pInputContext-&gt;hMsgBuf);</div>
<div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160;            pInputContext-&gt;hMsgBuf = <a class="code" href="a00311.html#abfbbdf31138ad5f8b5049178ddbe235a">ImmCreateIMCC</a>(<span class="keyword">sizeof</span>(<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>));</div>
<div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160;            pInputContext-&gt;dwNumMsgBuf = 0;</div>
<div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;        }</div>
<div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160; </div>
<div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;<span class="comment">         * hGuideLine</span></div>
<div class="line"><a name="l00707"></a><span class="lineno">  707</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00708"></a><span class="lineno">  708</span>&#160;        dwSize = <a class="code" href="a00311.html#aed5e56e3e55d9fec8d9c7aed6e5c38f6">ImmGetIMCCSize</a>(pInputContext-&gt;hGuideLine);</div>
<div class="line"><a name="l00709"></a><span class="lineno">  709</span>&#160; </div>
<div class="line"><a name="l00710"></a><span class="lineno">  710</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a00311.html#aa8607ca90f4dc47cfbce58d23d4ca524">ImmGetIMCCLockCount</a>(pInputContext-&gt;hGuideLine) != 0 ||</div>
<div class="line"><a name="l00711"></a><span class="lineno">  711</span>&#160;                dwSize &lt; <span class="keyword">sizeof</span>(GUIDELINE) || dwSize &gt; <a class="code" href="a00278.html#ac93119d233852eca62492cabfbd285cc">IMCC_ALLOC_TOOLARGE</a>) {</div>
<div class="line"><a name="l00712"></a><span class="lineno">  712</span>&#160; </div>
<div class="line"><a name="l00713"></a><span class="lineno">  713</span>&#160;            <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;SelectContext: create new hGuideLine&quot;</span>);</div>
<div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160;            <a class="code" href="a00311.html#a36785d16e41db2e18eb9dee6c4566850">ImmDestroyIMCC</a>(pInputContext-&gt;hGuideLine);</div>
<div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160;            pInputContext-&gt;hGuideLine = <a class="code" href="a00311.html#abfbbdf31138ad5f8b5049178ddbe235a">ImmCreateIMCC</a>(<span class="keyword">sizeof</span>(GUIDELINE));</div>
<div class="line"><a name="l00716"></a><span class="lineno">  716</span>&#160;            pGuideLine = (PGUIDELINE)<a class="code" href="a00311.html#a02ff95b5201786b482e825455b481f51">ImmLockIMCC</a>(pInputContext-&gt;hGuideLine);</div>
<div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160; </div>
<div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160;            <span class="keywordflow">if</span> (pGuideLine != NULL) {</div>
<div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;                pGuideLine-&gt;dwSize = <span class="keyword">sizeof</span>(GUIDELINE);</div>
<div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;                <a class="code" href="a00311.html#a4363eede481a6941c0b440711a64442c">ImmUnlockIMCC</a>(pInputContext-&gt;hGuideLine);</div>
<div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;            }</div>
<div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160;        }</div>
<div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160; </div>
<div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160;<span class="comment">         * hCandInfo</span></div>
<div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00727"></a><span class="lineno">  727</span>&#160;        dwSize = <a class="code" href="a00311.html#aed5e56e3e55d9fec8d9c7aed6e5c38f6">ImmGetIMCCSize</a>(pInputContext-&gt;hCandInfo);</div>
<div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160; </div>
<div class="line"><a name="l00729"></a><span class="lineno">  729</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a00311.html#aa8607ca90f4dc47cfbce58d23d4ca524">ImmGetIMCCLockCount</a>(pInputContext-&gt;hCandInfo) != 0 ||</div>
<div class="line"><a name="l00730"></a><span class="lineno">  730</span>&#160;                dwSize &lt; <span class="keyword">sizeof</span>(CANDIDATEINFO) || dwSize &gt; <a class="code" href="a00278.html#ac93119d233852eca62492cabfbd285cc">IMCC_ALLOC_TOOLARGE</a>) {</div>
<div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160; </div>
<div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160;            <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;SelectContext: create new hCandInfo&quot;</span>);</div>
<div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;            <a class="code" href="a00311.html#a36785d16e41db2e18eb9dee6c4566850">ImmDestroyIMCC</a>(pInputContext-&gt;hCandInfo);</div>
<div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;            pInputContext-&gt;hCandInfo = <a class="code" href="a00311.html#abfbbdf31138ad5f8b5049178ddbe235a">ImmCreateIMCC</a>(<span class="keyword">sizeof</span>(CANDIDATEINFO));</div>
<div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;            pCandInfo = (PCANDIDATEINFO)<a class="code" href="a00311.html#a02ff95b5201786b482e825455b481f51">ImmLockIMCC</a>(pInputContext-&gt;hCandInfo);</div>
<div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160; </div>
<div class="line"><a name="l00737"></a><span class="lineno">  737</span>&#160;            <span class="keywordflow">if</span> (pCandInfo != NULL) {</div>
<div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;                pCandInfo-&gt;dwSize = <span class="keyword">sizeof</span>(CANDIDATEINFO);</div>
<div class="line"><a name="l00739"></a><span class="lineno">  739</span>&#160;                <a class="code" href="a00311.html#a4363eede481a6941c0b440711a64442c">ImmUnlockIMCC</a>(pInputContext-&gt;hCandInfo);</div>
<div class="line"><a name="l00740"></a><span class="lineno">  740</span>&#160;            }</div>
<div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160;        }</div>
<div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160; </div>
<div class="line"><a name="l00743"></a><span class="lineno">  743</span>&#160; </div>
<div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160;<span class="comment">         * hCompStr</span></div>
<div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;        dwSize = <a class="code" href="a00311.html#aed5e56e3e55d9fec8d9c7aed6e5c38f6">ImmGetIMCCSize</a>(pInputContext-&gt;hCompStr);</div>
<div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160; </div>
<div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a00311.html#aa8607ca90f4dc47cfbce58d23d4ca524">ImmGetIMCCLockCount</a>(pInputContext-&gt;hCompStr) != 0 ||</div>
<div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160;                dwSize &lt; <span class="keyword">sizeof</span>(COMPOSITIONSTRING) || dwSize &gt; <a class="code" href="a00278.html#ac93119d233852eca62492cabfbd285cc">IMCC_ALLOC_TOOLARGE</a>) {</div>
<div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160; </div>
<div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160;            <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;SelectContext: create new hCompStr&quot;</span>);</div>
<div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;            <a class="code" href="a00311.html#a36785d16e41db2e18eb9dee6c4566850">ImmDestroyIMCC</a>(pInputContext-&gt;hCompStr);</div>
<div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160;            pInputContext-&gt;hCompStr = <a class="code" href="a00311.html#abfbbdf31138ad5f8b5049178ddbe235a">ImmCreateIMCC</a>(<span class="keyword">sizeof</span>(COMPOSITIONSTRING));</div>
<div class="line"><a name="l00755"></a><span class="lineno">  755</span>&#160;            pCompStr = (PCOMPOSITIONSTRING)<a class="code" href="a00311.html#a02ff95b5201786b482e825455b481f51">ImmLockIMCC</a>(pInputContext-&gt;hCompStr);</div>
<div class="line"><a name="l00756"></a><span class="lineno">  756</span>&#160; </div>
<div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160;            <span class="keywordflow">if</span> (pCompStr != NULL) {</div>
<div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;                pCompStr-&gt;dwSize = <span class="keyword">sizeof</span>(COMPOSITIONSTRING);</div>
<div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160;                <a class="code" href="a00311.html#a4363eede481a6941c0b440711a64442c">ImmUnlockIMCC</a>(pInputContext-&gt;hCompStr);</div>
<div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;            }</div>
<div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;        }</div>
<div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160; </div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;        <a class="code" href="a00311.html#a5d94d0239203482be832b9a8e6f67754">ImmUnlockIMC</a>(hImc);</div>
<div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;    }</div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160; </div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;<span class="comment">     * Select the input context.</span></div>
<div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;    <span class="keywordflow">if</span> (pSelImeDpi != NULL)</div>
<div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160;        (*pSelImeDpi-&gt;<a class="code" href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">pfn</a>.<a class="code" href="a02065.html#a3e3d7e9fd44032fbdaaa80c04d2e8e78">ImeSelect</a>)(hImc, TRUE);</div>
<div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160; </div>
<div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;    <a class="code" href="a00311.html#a476139459ee89728a91d341e1b72fb39">ImmUnlockImeDpi</a>(pUnSelImeDpi);</div>
<div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;    <a class="code" href="a00311.html#a476139459ee89728a91d341e1b72fb39">ImmUnlockImeDpi</a>(pSelImeDpi);</div>
<div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;    <a class="code" href="a00311.html#a9488726a81b957d10975e322e12b13e0">ImmUnlockClientImc</a>(pClientImc);</div>
<div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160; </div>
<div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00293_source.html#l00134">ClrICF</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00278_source.html#l00015">IMCC_ALLOC_TOOLARGE</a>, <a class="el" href="a00341_source.html#l00029">IMCF_UNICODE</a>, <a class="el" href="a00344_source.html#l00067">tagIMEDPI::ImeInfo</a>, <a class="el" href="a00344_source.html#l00082">tagIMEDPI::_tagImeFunctions::ImeSelect</a>, <a class="el" href="a00311_source.html#l00355">ImmCreateIMCC()</a>, <a class="el" href="a00311_source.html#l00373">ImmDestroyIMCC()</a>, <a class="el" href="a00311_source.html#l00412">ImmGetIMCCLockCount()</a>, <a class="el" href="a00311_source.html#l00439">ImmGetIMCCSize()</a>, <a class="el" href="a00311_source.html#l00570">ImmLockClientImc()</a>, <a class="el" href="a00311_source.html#l00243">ImmLockIMC()</a>, <a class="el" href="a00311_source.html#l00386">ImmLockIMCC()</a>, <a class="el" href="a00311_source.html#l00649">ImmLockImeDpi()</a>, <a class="el" href="a00311_source.html#l00425">ImmReSizeIMCC()</a>, <a class="el" href="a00311_source.html#l00623">ImmUnlockClientImc()</a>, <a class="el" href="a00311_source.html#l00302">ImmUnlockIMC()</a>, <a class="el" href="a00311_source.html#l00399">ImmUnlockIMCC()</a>, <a class="el" href="a00311_source.html#l00678">ImmUnlockImeDpi()</a>, <a class="el" href="a00281_source.html#l02873">LFontAtoLFontW()</a>, <a class="el" href="a00281_source.html#l02894">LFontWtoLFontA()</a>, <a class="el" href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">tagIMEDPI::pfn</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00131">RIPMSG0</a>, <a class="el" href="a00371_source.html#l00132">RIPMSG1</a>, <a class="el" href="a00293_source.html#l00132">SetICF</a>, <a class="el" href="a00293_source.html#l00136">TestICF</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00296_source.html#l00295">SelectContextProc()</a>.</p>

</div>
</div>
<a id="a1020bebc03d70d1cb65e0f2f363bc6a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1020bebc03d70d1cb65e0f2f363bc6a5">&#9670;&nbsp;</a></span>TestInputContextProcess()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL TestInputContextProcess </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#abc706d4b4a5047514d67d988cc24ce90">PIMC</a>&#160;</td>
          <td class="paramname"><em>pImc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00311_source.html">misc.c</a> 第 <a class="el" href="a00311_source.html#l00479">479</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;{</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;<span class="comment">     * If the threads are the same, don&#39;t bother going to the kernel</span></div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;<span class="comment">     * to get the input context&#39;s process id.</span></div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;    <span class="keywordflow">if</span> (GETPTI(pImc) == <a class="code" href="a00311.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>()) {</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;    }</div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160; </div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;    <span class="keywordflow">return</span> (<a class="code" href="a00293.html#abd875fda02d64715d13c9508f00fe612">GetInputContextProcess</a>((HIMC)PtoH(pImc)) == <a class="code" href="a00293.html#aad664f25fc3e24dc7666c8236a362b69">GETPROCESSID</a>());</div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00293_source.html#l00119">GetInputContextProcess</a>, <a class="el" href="a00293_source.html#l00128">GETPROCESSID</a> , 以及 <a class="el" href="a00311_source.html#l00458">PtiCurrent()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00311_source.html#l00570">ImmLockClientImc()</a>.</p>

</div>
</div>
<a id="aeaaca4dc06f37c780d48a7039c0ad6ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeaaca4dc06f37c780d48a7039c0ad6ba">&#9670;&nbsp;</a></span>UnloadIME()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID UnloadIME </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00344.html#a62ef1d2de4f5999445749347090577a3">PIMEDPI</a>&#160;</td>
          <td class="paramname"><em>pImeDpi</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fTerminateIme</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00296_source.html">immime.c</a> 第 <a class="el" href="a00296_source.html#l00179">179</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;{</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    <span class="keywordflow">if</span> (pImeDpi == NULL) {</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;UnloadIME: no pImeDpi entry&quot;</span>);</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    }</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160; </div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <a class="code" href="a00293.html#a4a8d67a2c4cc9ce4dd6aabfd9e460635">ImmAssert</a>(pImeDpi-&gt;<a class="code" href="a02061.html#a21338885a241e5327784b452bab0148d">hInst</a> != NULL);</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160; </div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    <span class="keywordflow">if</span> (fTerminateIme) {</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="comment">         * Destroy IME first.</span></div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;        (*pImeDpi-&gt;<a class="code" href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">pfn</a>.<a class="code" href="a02065.html#a88b87d202592aece5d210d1df94e5039">ImeDestroy</a>)(0);</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    }</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160; </div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    FreeLibrary(pImeDpi-&gt;<a class="code" href="a02061.html#a21338885a241e5327784b452bab0148d">hInst</a>);</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    pImeDpi-&gt;<a class="code" href="a02061.html#a21338885a241e5327784b452bab0148d">hInst</a> = NULL;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160; </div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00344_source.html#l00065">tagIMEDPI::hInst</a>, <a class="el" href="a00344_source.html#l00079">tagIMEDPI::_tagImeFunctions::ImeDestroy</a>, <a class="el" href="a00293_source.html#l00057">ImmAssert</a>, <a class="el" href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">tagIMEDPI::pfn</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a> , 以及 <a class="el" href="a00371_source.html#l00131">RIPMSG0</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00296_source.html#l00204">FindOrLoadImeDpi()</a> , 以及 <a class="el" href="a00308_source.html#l00181">ImmGetProperty()</a>.</p>

</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="ab7ac3db019078f20fcf82850b103d097"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab7ac3db019078f20fcf82850b103d097">&#9670;&nbsp;</a></span>gcsImeDpi</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CRITICAL_SECTION gcsImeDpi</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03254_source.html">imm/globals.c</a> 第 <a class="el" href="a03254_source.html#l00020">20</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00296_source.html#l00204">FindOrLoadImeDpi()</a>, <a class="el" href="a00299_source.html#l00024">ImmDllInitialize()</a> , 以及 <a class="el" href="a00311_source.html#l00649">ImmLockImeDpi()</a>.</p>

</div>
</div>
<a id="a10bde0fee9a1b44eafd17dfae0807a12"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10bde0fee9a1b44eafd17dfae0807a12">&#9670;&nbsp;</a></span>ghInst</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HINSTANCE ghInst</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03254_source.html">imm/globals.c</a> 第 <a class="el" href="a03254_source.html#l00014">14</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00323_source.html#l00107">ImmCreateSoftKeyboard()</a>, <a class="el" href="a00299_source.html#l00024">ImmDllInitialize()</a>, <a class="el" href="a00323_source.html#l00022">RegisterSoftKeyboard()</a>, <a class="el" href="a00317_source.html#l00221">SKC1DrawBitmap()</a>, <a class="el" href="a00317_source.html#l00250">SKC1DrawLabel()</a>, <a class="el" href="a00317_source.html#l00853">SKC1SetCursor()</a>, <a class="el" href="a00320_source.html#l00187">SKT1DrawBitmap()</a> , 以及 <a class="el" href="a00320_source.html#l00636">SKT1SetCursor()</a>.</p>

</div>
</div>
<a id="ad8944ae644d08d76a5bac7a209743293"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8944ae644d08d76a5bac7a209743293">&#9670;&nbsp;</a></span>gpImeDpi</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00344.html#a62ef1d2de4f5999445749347090577a3">PIMEDPI</a> gpImeDpi</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03254_source.html">imm/globals.c</a> 第 <a class="el" href="a03254_source.html#l00019">19</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00296_source.html#l00204">FindOrLoadImeDpi()</a> , 以及 <a class="el" href="a00311_source.html#l00649">ImmLockImeDpi()</a>.</p>

</div>
</div>
<a id="ad760da1dd81d9e84dee607d18edfde39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad760da1dd81d9e84dee607d18edfde39">&#9670;&nbsp;</a></span>gpsi</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00365.html#a9ea7647252855da35cfeb4253e1a4c80">PSERVERINFO</a> gpsi</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00020_source.html">clglobal.c</a> 第 <a class="el" href="a00020_source.html#l00039">39</a> 行定义.</p>

</div>
</div>
<a id="a0d90a509693544f26391a540794f76f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d90a509693544f26391a540794f76f5">&#9670;&nbsp;</a></span>gptRaiseEdge</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POINT gptRaiseEdge</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03254_source.html">imm/globals.c</a> 第 <a class="el" href="a03254_source.html#l00024">24</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00323_source.html#l00107">ImmCreateSoftKeyboard()</a>, <a class="el" href="a00320_source.html#l00047">InitSKT1ButtonPos()</a> , 以及 <a class="el" href="a00320_source.html#l00545">SKT1MousePosition()</a>.</p>

</div>
</div>
<a id="ad30e6f0a79eb6ede0a70b9283632eb2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad30e6f0a79eb6ede0a70b9283632eb2c">&#9670;&nbsp;</a></span>gptWorkArea</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POINT gptWorkArea</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03254_source.html">imm/globals.c</a> 第 <a class="el" href="a03254_source.html#l00023">23</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00323_source.html#l00107">ImmCreateSoftKeyboard()</a> , 以及 <a class="el" href="a00320_source.html#l00636">SKT1SetCursor()</a>.</p>

</div>
</div>
<a id="ac02f0141c423acd033ecdd2a757a3cc1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac02f0141c423acd033ecdd2a757a3cc1">&#9670;&nbsp;</a></span>gSharedInfo</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00365.html#a940f314bbf6ecd9398256c443010dbe4">SHAREDINFO</a> gSharedInfo</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00020_source.html">clglobal.c</a> 第 <a class="el" href="a00020_source.html#l00040">40</a> 行定义.</p>

</div>
</div>
<a id="a2787410490163e996564a3c2f7cc2c35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2787410490163e996564a3c2f7cc2c35">&#9670;&nbsp;</a></span>gszHandCursor</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">WCHAR gszHandCursor[]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03254_source.html">imm/globals.c</a> 第 <a class="el" href="a03254_source.html#l00026">26</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00317_source.html#l00853">SKC1SetCursor()</a> , 以及 <a class="el" href="a00320_source.html#l00636">SKT1SetCursor()</a>.</p>

</div>
</div>
<a id="a8012bb4501000bd95057e4e5022b7f91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8012bb4501000bd95057e4e5022b7f91">&#9670;&nbsp;</a></span>gszRegKbdLayout</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">WCHAR gszRegKbdLayout[]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03254_source.html">imm/globals.c</a> 第 <a class="el" href="a03254_source.html#l00028">28</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00305_source.html#l00038">ImmLoadLayout()</a>.</p>

</div>
</div>
<a id="a2113971ea24e05b4d0789e642c7cb547"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2113971ea24e05b4d0789e642c7cb547">&#9670;&nbsp;</a></span>gszValImeFile</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">WCHAR gszValImeFile[]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03254_source.html">imm/globals.c</a> 第 <a class="el" href="a03254_source.html#l00029">29</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00305_source.html#l00038">ImmLoadLayout()</a>.</p>

</div>
</div>
<a id="aee8d5bf4290f4bcb096ae2c0a5882f44"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee8d5bf4290f4bcb096ae2c0a5882f44">&#9670;&nbsp;</a></span>guScanCode</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> guScanCode[0XFF]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03254_source.html">imm/globals.c</a> 第 <a class="el" href="a03254_source.html#l00025">25</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00323_source.html#l00107">ImmCreateSoftKeyboard()</a>, <a class="el" href="a00317_source.html#l00981">SKC1ButtonUp()</a>, <a class="el" href="a00320_source.html#l00782">SKT1ButtonUp()</a> , 以及 <a class="el" href="a00320_source.html#l00636">SKT1SetCursor()</a>.</p>

</div>
</div>
<a id="a4881f1bbdc40b620a6f39c6b9b0edbf9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4881f1bbdc40b620a6f39c6b9b0edbf9">&#9670;&nbsp;</a></span>pImmHeap</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PVOID pImmHeap</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03254_source.html">imm/globals.c</a> 第 <a class="el" href="a03254_source.html#l00015">15</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00299_source.html#l00024">ImmDllInitialize()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa00371_html_a01c4659626880ba56745765a3580a36b"><div class="ttname"><a href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a></div><div class="ttdeci">#define RIPMSG0(flags, szFmt)</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00131">winerrp.h:131</a></div></div>
<div class="ttc" id="aa00365_html_adcc97c154408fd5498551b3d94332c1b"><div class="ttname"><a href="a00365.html#adcc97c154408fd5498551b3d94332c1b">HMValidateHandle</a></div><div class="ttdeci">PVOID FASTCALL HMValidateHandle(HANDLE h, BYTE btype)</div><div class="ttdef"><b>Definition:</b> <a href="a03752_source.html#l00232">rtl/wow.c:232</a></div></div>
<div class="ttc" id="aa00305_html_a6a6ec1bc7f07c1a4dd22d7e905ad9b12"><div class="ttname"><a href="a00305.html#a6a6ec1bc7f07c1a4dd22d7e905ad9b12">GET_PROC</a></div><div class="ttdeci">#define GET_PROC(x)</div></div>
<div class="ttc" id="aa00293_html_ae6ef91973c6a6f95f9b95f0c2a7c3315"><div class="ttname"><a href="a00293.html#ae6ef91973c6a6f95f9b95f0c2a7c3315">ImmLocalFree</a></div><div class="ttdeci">#define ImmLocalFree(p)</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00107">immcli.h:107</a></div></div>
<div class="ttc" id="aa02061_html_acbd013b579c0b839717284fb40eb7fbe"><div class="ttname"><a href="a02061.html#acbd013b579c0b839717284fb40eb7fbe">tagIMEDPI::ImeInfo</a></div><div class="ttdeci">IMEINFO ImeInfo</div><div class="ttdef"><b>Definition:</b> <a href="a00344_source.html#l00067">immuser.h:67</a></div></div>
<div class="ttc" id="aa00941_html_aaf8b3ae5e2b40b6de6cc9377d53baa45"><div class="ttname"><a href="a00941.html#aaf8b3ae5e2b40b6de6cc9377d53baa45">WideCharToMultiByte</a></div><div class="ttdeci">int WideCharToMultiByte(UINT CodePage, DWORD dwFlags, LPCWSTR lpWideCharStr, int cchWideChar, LPSTR lpMultiByteStr, int cchMultiByte, LPCSTR lpDefaultChar, LPBOOL lpUsedDefaultChar)</div></div>
<div class="ttc" id="aa02053_html"><div class="ttname"><a href="a02053.html">tagIMEINFOEX</a></div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00081">immstruc.h:81</a></div></div>
<div class="ttc" id="aa00311_html_a476139459ee89728a91d341e1b72fb39"><div class="ttname"><a href="a00311.html#a476139459ee89728a91d341e1b72fb39">ImmUnlockImeDpi</a></div><div class="ttdeci">VOID WINAPI ImmUnlockImeDpi(PIMEDPI pImeDpi)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00678">misc.c:678</a></div></div>
<div class="ttc" id="aa00281_html_ac73b048e1ea844c9c87f27db2a4ecf15"><div class="ttname"><a href="a00281.html#ac73b048e1ea844c9c87f27db2a4ecf15">InternalSCS_CHANGECLAUSE</a></div><div class="ttdeci">LPBYTE InternalSCS_CHANGECLAUSE(HIMC hImc, LPCVOID lpCompRead, DWORD dwCompReadLen, DWORD dwIndex, LPDWORD *lplpNewCompRead, DWORD *lpdwNewCompReadLen, BOOL fAnsi)</div><div class="ttdef"><b>Definition:</b> <a href="a00281_source.html#l00473">ctxtinfo.c:473</a></div></div>
<div class="ttc" id="aa02061_html_a58447d6039150bd4b98c6a9b074d3f59"><div class="ttname"><a href="a02061.html#a58447d6039150bd4b98c6a9b074d3f59">tagIMEDPI::cLock</a></div><div class="ttdeci">DWORD cLock</div><div class="ttdef"><b>Definition:</b> <a href="a00344_source.html#l00069">immuser.h:69</a></div></div>
<div class="ttc" id="aa02065_html_aada14c692732ac0e21032a40a289a5f4"><div class="ttname"><a href="a02065.html#aada14c692732ac0e21032a40a289a5f4">tagIMEDPI::_tagImeFunctions::ImeInquire</a></div><div class="ttdeci">union tagIMEDPI::_tagImeFunctions::@4 ImeInquire</div></div>
<div class="ttc" id="aa00290_html_a98214bc2c7b6cf81de284d5988c85e7a"><div class="ttname"><a href="a00290.html#a98214bc2c7b6cf81de284d5988c85e7a">KShapeToggle</a></div><div class="ttdeci">BOOL KShapeToggle(HIMC hIMC, HKL hKL, HWND hWnd)</div></div>
<div class="ttc" id="aa00305_html_a260b54633a9afaa5ea04216b29daa3a3"><div class="ttname"><a href="a00305.html#a260b54633a9afaa5ea04216b29daa3a3">LoadVarVersionInfo</a></div><div class="ttdeci">BOOL LoadVarVersionInfo(PIMEINFOEX piiex, PWSTR pszVersionBuffer)</div><div class="ttdef"><b>Definition:</b> <a href="a00305_source.html#l00238">layime.c:238</a></div></div>
<div class="ttc" id="aa00281_html_a449b51cb13f429ee038b04928aebf831"><div class="ttname"><a href="a00281.html#a449b51cb13f429ee038b04928aebf831">LFontWtoLFontA</a></div><div class="ttdeci">VOID LFontWtoLFontA(LPLOGFONTW lpLogFontW, LPLOGFONTA lpLogFontA)</div><div class="ttdef"><b>Definition:</b> <a href="a00281_source.html#l02894">ctxtinfo.c:2894</a></div></div>
<div class="ttc" id="aa00305_html_ac0090bf32338670f1fab48565d8f844a"><div class="ttname"><a href="a00305.html#ac0090bf32338670f1fab48565d8f844a">pfnGetFileVersionInfoW</a></div><div class="ttdeci">static LPFNGETFILEVERSIONINFOW pfnGetFileVersionInfoW</div><div class="ttdef"><b>Definition:</b> <a href="a00305_source.html#l00033">layime.c:33</a></div></div>
<div class="ttc" id="aa00311_html_a02ff95b5201786b482e825455b481f51"><div class="ttname"><a href="a00311.html#a02ff95b5201786b482e825455b481f51">ImmLockIMCC</a></div><div class="ttdeci">LPVOID WINAPI ImmLockIMCC(HIMCC hIMCC)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00386">misc.c:386</a></div></div>
<div class="ttc" id="aa00362_html_a1a126aa946b044cf85f9a4ff5ae419de"><div class="ttname"><a href="a00362.html#a1a126aa946b044cf85f9a4ff5ae419de">NtUserGetThreadState</a></div><div class="ttdeci">DWORD NtUserGetThreadState(IN USERTHREADSTATECLASS ThreadState)</div><div class="ttdef"><b>Definition:</b> <a href="a03614_source.html#l06224">kernel/ntstubs.c:6224</a></div></div>
<div class="ttc" id="aa00290_html_a1ebfa165d5401811c7df846ab4b12e46"><div class="ttname"><a href="a00290.html#a1ebfa165d5401811c7df846ab4b12e46">TShapeToggle</a></div><div class="ttdeci">BOOL TShapeToggle(HIMC hIMC, HKL hKL, HWND hWnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00895">hotkey.c:895</a></div></div>
<div class="ttc" id="aa01973_html_aba3ed475c494d5a2959551dbeb945df7"><div class="ttname"><a href="a01973.html#aba3ed475c494d5a2959551dbeb945df7">_ENUMREGWORDDATA::w</a></div><div class="ttdeci">REGISTERWORDENUMPROCW w</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00051">immcli.h:51</a></div></div>
<div class="ttc" id="aa02589_html_a85828ff3dc4186af53455b2aefe48596"><div class="ttname"><a href="a02589.html#a85828ff3dc4186af53455b2aefe48596">tagIMC::dwClientImcData</a></div><div class="ttdeci">DWORD dwClientImcData</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01461">user.h:1461</a></div></div>
<div class="ttc" id="aa00341_html_a432037388ec41b1fb8f299bdda2ea394"><div class="ttname"><a href="a00341.html#a432037388ec41b1fb8f299bdda2ea394">IMCF_DEFAULTIMC</a></div><div class="ttdeci">#define IMCF_DEFAULTIMC</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00037">immstruc.h:37</a></div></div>
<div class="ttc" id="aa00311_html_aed5e56e3e55d9fec8d9c7aed6e5c38f6"><div class="ttname"><a href="a00311.html#aed5e56e3e55d9fec8d9c7aed6e5c38f6">ImmGetIMCCSize</a></div><div class="ttdeci">DWORD WINAPI ImmGetIMCCSize(HIMCC hIMCC)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00439">misc.c:439</a></div></div>
<div class="ttc" id="aa00281_html_a2d8525c61132e88d7cbc60f12d725aa1"><div class="ttname"><a href="a00281.html#a2d8525c61132e88d7cbc60f12d725aa1">InternalGetCandidateListWtoA</a></div><div class="ttdeci">DWORD InternalGetCandidateListWtoA(LPCANDIDATELIST lpCandListW, LPCANDIDATELIST lpCandListA, DWORD dwBufLen)</div><div class="ttdef"><b>Definition:</b> <a href="a00281_source.html#l02725">ctxtinfo.c:2725</a></div></div>
<div class="ttc" id="aa02061_html_a21338885a241e5327784b452bab0148d"><div class="ttname"><a href="a02061.html#a21338885a241e5327784b452bab0148d">tagIMEDPI::hInst</a></div><div class="ttdeci">HANDLE hInst</div><div class="ttdef"><b>Definition:</b> <a href="a00344_source.html#l00065">immuser.h:65</a></div></div>
<div class="ttc" id="aa02053_html_af908ac68f9d48c154fd2db472ff1f421"><div class="ttname"><a href="a02053.html#af908ac68f9d48c154fd2db472ff1f421">tagIMEINFOEX::dwImeWinVersion</a></div><div class="ttdeci">DWORD dwImeWinVersion</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00089">immstruc.h:89</a></div></div>
<div class="ttc" id="aa00311_html_a8315d2c807ba18ba9e528c40614b6173"><div class="ttname"><a href="a00311.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a></div><div class="ttdeci">PTHREADINFO PtiCurrent(VOID)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00458">misc.c:458</a></div></div>
<div class="ttc" id="aa03254_html_ab7ac3db019078f20fcf82850b103d097"><div class="ttname"><a href="a03254.html#ab7ac3db019078f20fcf82850b103d097">gcsImeDpi</a></div><div class="ttdeci">CRITICAL_SECTION gcsImeDpi</div><div class="ttdef"><b>Definition:</b> <a href="a03254_source.html#l00020">imm/globals.c:20</a></div></div>
<div class="ttc" id="aa00311_html_a9488726a81b957d10975e322e12b13e0"><div class="ttname"><a href="a00311.html#a9488726a81b957d10975e322e12b13e0">ImmUnlockClientImc</a></div><div class="ttdeci">VOID WINAPI ImmUnlockClientImc(PCLIENTIMC pClientImc)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00623">misc.c:623</a></div></div>
<div class="ttc" id="aa00281_html_a7beab0a027ce1eeac884a9e1db1e5a2f"><div class="ttname"><a href="a00281.html#a7beab0a027ce1eeac884a9e1db1e5a2f">CompositionString</a></div><div class="ttdeci">LONG CompositionString(HIMC hImc, PINPUTCONTEXT *ppInputContext, PCOMPOSITIONSTRING *ppCompStr)</div><div class="ttdef"><b>Definition:</b> <a href="a00281_source.html#l00182">ctxtinfo.c:182</a></div></div>
<div class="ttc" id="aa00311_html_a280ace9bfd93d40801a1ad151e18cdc3"><div class="ttname"><a href="a00311.html#a280ace9bfd93d40801a1ad151e18cdc3">ImmReSizeIMCC</a></div><div class="ttdeci">HIMCC WINAPI ImmReSizeIMCC(HIMCC hIMCC, DWORD dwSize)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00425">misc.c:425</a></div></div>
<div class="ttc" id="aa02065_html_ae2d5cfa68d0db23157c71f8c1760628d"><div class="ttname"><a href="a02065.html#ae2d5cfa68d0db23157c71f8c1760628d">tagIMEDPI::_tagImeFunctions::w</a></div><div class="ttdeci">PFNINQUIREW w</div><div class="ttdef"><b>Definition:</b> <a href="a00344_source.html#l00072">immuser.h:72</a></div></div>
<div class="ttc" id="aa00311_html_abad0a50d57502d3e8ec482dd68997ad9"><div class="ttname"><a href="a00311.html#abad0a50d57502d3e8ec482dd68997ad9">ImmLockClientImc</a></div><div class="ttdeci">PCLIENTIMC WINAPI ImmLockClientImc(HIMC hImc)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00570">misc.c:570</a></div></div>
<div class="ttc" id="aa00293_html_aad664f25fc3e24dc7666c8236a362b69"><div class="ttname"><a href="a00293.html#aad664f25fc3e24dc7666c8236a362b69">GETPROCESSID</a></div><div class="ttdeci">#define GETPROCESSID()</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00128">immcli.h:128</a></div></div>
<div class="ttc" id="aa00341_html_ac46cd266ba06c5cf21f8360b146a3325"><div class="ttname"><a href="a00341.html#ac46cd266ba06c5cf21f8360b146a3325">IMCF_UNICODE</a></div><div class="ttdeci">#define IMCF_UNICODE</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00029">immstruc.h:29</a></div></div>
<div class="ttc" id="aa00293_html_a315fa72a2df1ad8c8bbb775c1c36a47d"><div class="ttname"><a href="a00293.html#a315fa72a2df1ad8c8bbb775c1c36a47d">RevalidateHimc</a></div><div class="ttdeci">#define RevalidateHimc(himc)</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00096">immcli.h:96</a></div></div>
<div class="ttc" id="aa00263_html_a1dc37c01a43d34053e1dbf4ee8e0da0a"><div class="ttname"><a href="a00263.html#a1dc37c01a43d34053e1dbf4ee8e0da0a">GetWindowThreadProcessId</a></div><div class="ttdeci">DWORD GetWindowThreadProcessId(HWND hwnd, LPDWORD lpdwProcessId)</div><div class="ttdef"><b>Definition:</b> <a href="a00263_source.html#l00211">winmgrc.c:211</a></div></div>
<div class="ttc" id="aa02053_html_acbd013b579c0b839717284fb40eb7fbe"><div class="ttname"><a href="a02053.html#acbd013b579c0b839717284fb40eb7fbe">tagIMEINFOEX::ImeInfo</a></div><div class="ttdeci">IMEINFO ImeInfo</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00083">immstruc.h:83</a></div></div>
<div class="ttc" id="aa00296_html_a082414a7811f5933c662d680f291cde4"><div class="ttname"><a href="a00296.html#a082414a7811f5933c662d680f291cde4">LoadIME</a></div><div class="ttdeci">BOOL LoadIME(PIMEINFOEX piiex, PIMEDPI pImeDpi)</div><div class="ttdef"><b>Definition:</b> <a href="a00296_source.html#l00097">immime.c:97</a></div></div>
<div class="ttc" id="aa01973_html_a4c53e4b03a8336b425386bfddf5b4ac1"><div class="ttname"><a href="a01973.html#a4c53e4b03a8336b425386bfddf5b4ac1">_ENUMREGWORDDATA::lpfn</a></div><div class="ttdeci">union _ENUMREGWORDDATA::@2 lpfn</div></div>
<div class="ttc" id="aa00953_html_a392e62da233ed3e2f7c3fd4f487a3896"><div class="ttname"><a href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a></div><div class="ttdeci">int INT</div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00006">bench.c:6</a></div></div>
<div class="ttc" id="aa00341_html_aa4eec6a54814a3fcdca0f205f002e58e"><div class="ttname"><a href="a00341.html#aa4eec6a54814a3fcdca0f205f002e58e">IMCF_INDESTROY</a></div><div class="ttdeci">#define IMCF_INDESTROY</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00035">immstruc.h:35</a></div></div>
<div class="ttc" id="aa03254_html_ad8944ae644d08d76a5bac7a209743293"><div class="ttname"><a href="a03254.html#ad8944ae644d08d76a5bac7a209743293">gpImeDpi</a></div><div class="ttdeci">PIMEDPI gpImeDpi</div><div class="ttdef"><b>Definition:</b> <a href="a03254_source.html#l00019">imm/globals.c:19</a></div></div>
<div class="ttc" id="aa00281_html_ac4fda3550ecb4e129affafd9b7b42510"><div class="ttname"><a href="a00281.html#ac4fda3550ecb4e129affafd9b7b42510">CheckClause</a></div><div class="ttdeci">BOOL CheckClause(LPDWORD lpComp, DWORD dwCompLen, LPDWORD lpClause, DWORD dwClauseLen)</div><div class="ttdef"><b>Definition:</b> <a href="a00281_source.html#l00269">ctxtinfo.c:269</a></div></div>
<div class="ttc" id="aa03743_html_ac5ede70e870dc1cf540d7524887e4edc"><div class="ttname"><a href="a03743.html#ac5ede70e870dc1cf540d7524887e4edc">IsWindow</a></div><div class="ttdeci">BOOL IsWindow(HWND hwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a03743_source.html#l00421">client/wow.c:421</a></div></div>
<div class="ttc" id="aa00371_html_a31aafffb49dfe98bdc749c9b35c90162"><div class="ttname"><a href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a></div><div class="ttdeci">#define RIPMSG1(flags, szFmt, p1)</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00132">winerrp.h:132</a></div></div>
<div class="ttc" id="aa00311_html_adbb6236f980a6faaacadbe634b25bbe2"><div class="ttname"><a href="a00311.html#adbb6236f980a6faaacadbe634b25bbe2">ImmGetImeInfoEx</a></div><div class="ttdeci">BOOL WINAPI ImmGetImeInfoEx(PIMEINFOEX piiex, IMEINFOEXCLASS SearchType, PVOID pvSearchKey)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00697">misc.c:697</a></div></div>
<div class="ttc" id="aa00341_html_a9d87ba42d1eed654ee04b018be9ea0b4"><div class="ttname"><a href="a00341.html#a9d87ba42d1eed654ee04b018be9ea0b4">IS_IME_KBDLAYOUT</a></div><div class="ttdeci">#define IS_IME_KBDLAYOUT(hkl)</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00045">immstruc.h:45</a></div></div>
<div class="ttc" id="aa00293_html_a14c7912f65c80bf423e70d6038ad8a96"><div class="ttname"><a href="a00293.html#a14c7912f65c80bf423e70d6038ad8a96">TestICF</a></div><div class="ttdeci">#define TestICF(pClientImc, flag)</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00136">immcli.h:136</a></div></div>
<div class="ttc" id="aa00281_html_addd7f6406858edea31bd4540272df48d"><div class="ttname"><a href="a00281.html#addd7f6406858edea31bd4540272df48d">LFontAtoLFontW</a></div><div class="ttdeci">VOID LFontAtoLFontW(LPLOGFONTA lpLogFontA, LPLOGFONTW lpLogFontW)</div><div class="ttdef"><b>Definition:</b> <a href="a00281_source.html#l02873">ctxtinfo.c:2873</a></div></div>
<div class="ttc" id="aa00257_html_a8315d2c807ba18ba9e528c40614b6173"><div class="ttname"><a href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a></div><div class="ttdeci">PTHREADINFO PtiCurrent(VOID)</div><div class="ttdef"><b>Definition:</b> <a href="a00263_source.html#l00526">winmgrc.c:526</a></div></div>
<div class="ttc" id="aa00356_html_a3f53b9d5a549a62853c4e3fb22b649d7"><div class="ttname"><a href="a00356.html#a3f53b9d5a549a62853c4e3fb22b649d7">PostMessage</a></div><div class="ttdeci">BOOL APIENTRY PostMessage(HWND hwnd, UINT wMsg, WPARAM wParam, LPARAM lParam)</div><div class="ttdef"><b>Definition:</b> <a href="a00356_source.html#l00471">ntcftxt.h:471</a></div></div>
<div class="ttc" id="aa00290_html_a33800c2717617b9775666d62b38a6d63"><div class="ttname"><a href="a00290.html#a33800c2717617b9775666d62b38a6d63">CSymbolToggle</a></div><div class="ttdeci">BOOL CSymbolToggle(HIMC hIMC, HKL hKL, HWND hWnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00845">hotkey.c:845</a></div></div>
<div class="ttc" id="aa00278_html_a0454939fd666a799e492c4dd53a6f322"><div class="ttname"><a href="a00278.html#a0454939fd666a799e492c4dd53a6f322">BuildHimcList</a></div><div class="ttdeci">DWORD BuildHimcList(DWORD idThread, HIMC **pphimcFirst)</div><div class="ttdef"><b>Definition:</b> <a href="a00278_source.html#l00835">context.c:835</a></div></div>
<div class="ttc" id="aa00296_html_a052f616554e546f5e09dfb7b7ecfab4c"><div class="ttname"><a href="a00296.html#a052f616554e546f5e09dfb7b7ecfab4c">InquireIme</a></div><div class="ttdeci">BOOL InquireIme(PIMEDPI pImeDpi)</div><div class="ttdef"><b>Definition:</b> <a href="a00296_source.html#l00021">immime.c:21</a></div></div>
<div class="ttc" id="aa00278_html_ac93119d233852eca62492cabfbd285cc"><div class="ttname"><a href="a00278.html#ac93119d233852eca62492cabfbd285cc">IMCC_ALLOC_TOOLARGE</a></div><div class="ttdeci">#define IMCC_ALLOC_TOOLARGE</div><div class="ttdef"><b>Definition:</b> <a href="a00278_source.html#l00015">context.c:15</a></div></div>
<div class="ttc" id="aa01973_html_af043c385dbae955385e412367960567e"><div class="ttname"><a href="a01973.html#af043c385dbae955385e412367960567e">_ENUMREGWORDDATA::lpData</a></div><div class="ttdeci">LPVOID lpData</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00054">immcli.h:54</a></div></div>
<div class="ttc" id="aa02065_html_a515a62b2ac4cbf98eac675e57915d2c7"><div class="ttname"><a href="a02065.html#a515a62b2ac4cbf98eac675e57915d2c7">tagIMEDPI::_tagImeFunctions::NotifyIME</a></div><div class="ttdeci">PFNNOTIFY NotifyIME</div><div class="ttdef"><b>Definition:</b> <a href="a00344_source.html#l00085">immuser.h:85</a></div></div>
<div class="ttc" id="aa02061_html_a54a30d705640d134c1e94e8b66fd0325"><div class="ttname"><a href="a02061.html#a54a30d705640d134c1e94e8b66fd0325">tagIMEDPI::pNext</a></div><div class="ttdeci">struct tagIMEDPI * pNext</div><div class="ttdef"><b>Definition:</b> <a href="a00344_source.html#l00064">immuser.h:64</a></div></div>
<div class="ttc" id="aa00311_html_a321a0bacc1c67d1fefea199d0c6f4612"><div class="ttname"><a href="a00311.html#a321a0bacc1c67d1fefea199d0c6f4612">ImmLockImeDpi</a></div><div class="ttdeci">PIMEDPI WINAPI ImmLockImeDpi(HKL hKL)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00649">misc.c:649</a></div></div>
<div class="ttc" id="aa00290_html_ab182755bc3002965f65aac6a072f0bc0"><div class="ttname"><a href="a00290.html#ab182755bc3002965f65aac6a072f0bc0">ImmGetHotKey</a></div><div class="ttdeci">BOOL WINAPI ImmGetHotKey(DWORD dwID, PUINT puModifiers, PUINT puVKey, HKL *phkl)</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00290">hotkey.c:290</a></div></div>
<div class="ttc" id="aa00293_html_ac9a8b2084b3f85ce62924981d68efa1e"><div class="ttname"><a href="a00293.html#ac9a8b2084b3f85ce62924981d68efa1e">SetICF</a></div><div class="ttdeci">#define SetICF(pClientImc, flag)</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00132">immcli.h:132</a></div></div>
<div class="ttc" id="aa00293_html_abd875fda02d64715d13c9508f00fe612"><div class="ttname"><a href="a00293.html#abd875fda02d64715d13c9508f00fe612">GetInputContextProcess</a></div><div class="ttdeci">#define GetInputContextProcess(himc)</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00119">immcli.h:119</a></div></div>
<div class="ttc" id="aa00290_html_aec2ee4d8404100149f7614f5d9273117"><div class="ttname"><a href="a00290.html#aec2ee4d8404100149f7614f5d9273117">CIMENonIMEToggle</a></div><div class="ttdeci">BOOL CIMENonIMEToggle(HIMC hIMC, HKL hKL, HWND hWnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00736">hotkey.c:736</a></div></div>
<div class="ttc" id="aa00341_html_aa0b52e98b4589615cda0b806dbadfd21"><div class="ttname"><a href="a00341.html#aa0b52e98b4589615cda0b806dbadfd21">NtUserBuildHimcList</a></div><div class="ttdeci">NTSTATUS NtUserBuildHimcList(DWORD idThread, UINT cHimcMax, HIMC *phimcFirst, PUINT pcHimcNeeded)</div></div>
<div class="ttc" id="aa02065_html_a3e3d7e9fd44032fbdaaa80c04d2e8e78"><div class="ttname"><a href="a02065.html#a3e3d7e9fd44032fbdaaa80c04d2e8e78">tagIMEDPI::_tagImeFunctions::ImeSelect</a></div><div class="ttdeci">PFNSELECT ImeSelect</div><div class="ttdef"><b>Definition:</b> <a href="a00344_source.html#l00082">immuser.h:82</a></div></div>
<div class="ttc" id="aa00953_html_aebb9e13210d88d43e32e735ada43a425"><div class="ttname"><a href="a00953.html#aebb9e13210d88d43e32e735ada43a425">CHAR</a></div><div class="ttdeci">char CHAR</div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00007">bench.c:7</a></div></div>
<div class="ttc" id="aa02053_html_aca1095cbcd4e269fd414475cea47a463"><div class="ttname"><a href="a02053.html#aca1095cbcd4e269fd414475cea47a463">tagIMEINFOEX::fLoadFlag</a></div><div class="ttdeci">BOOL fLoadFlag</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00087">immstruc.h:87</a></div></div>
<div class="ttc" id="aa00296_html_ab932e5b676f588f559338489d59642d2"><div class="ttname"><a href="a00296.html#ab932e5b676f588f559338489d59642d2">GET_IMEPROCT</a></div><div class="ttdeci">#define GET_IMEPROCT(x)</div></div>
<div class="ttc" id="aa00311_html_a93ced286ed15ec806746defb9a3ed34d"><div class="ttname"><a href="a00311.html#a93ced286ed15ec806746defb9a3ed34d">ImmLockIMC</a></div><div class="ttdeci">PINPUTCONTEXT WINAPI ImmLockIMC(HIMC hImc)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00243">misc.c:243</a></div></div>
<div class="ttc" id="aa00563_html_a074685e97e89d6aa2accdfcb82328699"><div class="ttname"><a href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a></div><div class="ttdeci">ddeml v[i&lt; inst &gt;][t&lt; type &gt;][hObj|pObj] Dump DDEML state information ddeml lists all ddeml instances for this process n ddeml t&lt; type &gt; lists all ddeml objects of the given type n n assumes link is first DWORD</div><div class="ttdef"><b>Definition:</b> <a href="a00563_source.html#l00175">exts.h:175</a></div></div>
<div class="ttc" id="aa00281_html_a9fb668b6f2ddb30602d6bcfe784d371d"><div class="ttname"><a href="a00281.html#a9fb668b6f2ddb30602d6bcfe784d371d">InternalGetCandidateListAtoW</a></div><div class="ttdeci">DWORD InternalGetCandidateListAtoW(LPCANDIDATELIST lpCandListA, LPCANDIDATELIST lpCandListW, DWORD dwBufLen)</div><div class="ttdef"><b>Definition:</b> <a href="a00281_source.html#l02649">ctxtinfo.c:2649</a></div></div>
<div class="ttc" id="aa00305_html_a6cbf1274d424a12440575114100a6615"><div class="ttname"><a href="a00305.html#a6cbf1274d424a12440575114100a6615">VERSION_DLL</a></div><div class="ttdeci">#define VERSION_DLL</div><div class="ttdef"><b>Definition:</b> <a href="a00305_source.html#l00016">layime.c:16</a></div></div>
<div class="ttc" id="aa00341_html_adc7ae3a885ca6232a56041256e96e8a4"><div class="ttname"><a href="a00341.html#adc7ae3a885ca6232a56041256e96e8a4">NtUserSetImeInfoEx</a></div><div class="ttdeci">BOOL NtUserSetImeInfoEx(IN PIMEINFOEX piiex)</div></div>
<div class="ttc" id="aa02581_html"><div class="ttname"><a href="a02581.html">tagWND</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01388">user.h:1388</a></div></div>
<div class="ttc" id="aa00293_html_a05aae3da8b024bc1c769b9b9d9b664f9"><div class="ttname"><a href="a00293.html#a05aae3da8b024bc1c769b9b9d9b664f9">AddBackslash</a></div><div class="ttdeci">UINT AddBackslash(PWSTR pwszPath)</div><div class="ttdef"><b>Definition:</b> <a href="a00305_source.html#l00094">layime.c:94</a></div></div>
<div class="ttc" id="aa00293_html_aa5b41822aa928c904209ff5ab3f734b7"><div class="ttname"><a href="a00293.html#aa5b41822aa928c904209ff5ab3f734b7">GetInputContextThread</a></div><div class="ttdeci">#define GetInputContextThread(himc)</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00122">immcli.h:122</a></div></div>
<div class="ttc" id="aa00311_html_aa8607ca90f4dc47cfbce58d23d4ca524"><div class="ttname"><a href="a00311.html#aa8607ca90f4dc47cfbce58d23d4ca524">ImmGetIMCCLockCount</a></div><div class="ttdeci">DWORD WINAPI ImmGetIMCCLockCount(HIMCC hIMCC)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00412">misc.c:412</a></div></div>
<div class="ttc" id="aa00305_html_a384146e7c4c51b37b6c8220dcbefabaa"><div class="ttname"><a href="a00305.html#a384146e7c4c51b37b6c8220dcbefabaa">WCHAR_BACKSLASH</a></div><div class="ttdeci">#define WCHAR_BACKSLASH</div><div class="ttdef"><b>Definition:</b> <a href="a00305_source.html#l00021">layime.c:21</a></div></div>
<div class="ttc" id="aa00371_html_a41f433389f20db57f042022a662e96de"><div class="ttname"><a href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a></div><div class="ttdeci">#define RIP_WARNING</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00029">winerrp.h:29</a></div></div>
<div class="ttc" id="aa00311_html_a36785d16e41db2e18eb9dee6c4566850"><div class="ttname"><a href="a00311.html#a36785d16e41db2e18eb9dee6c4566850">ImmDestroyIMCC</a></div><div class="ttdeci">HIMCC WINAPI ImmDestroyIMCC(HIMCC hIMCC)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00373">misc.c:373</a></div></div>
<div class="ttc" id="aa00293_html_a3d753f884cab418538a34030823aa1d0"><div class="ttname"><a href="a00293.html#a3d753f884cab418538a34030823aa1d0">ImmLocalAlloc</a></div><div class="ttdeci">#define ImmLocalAlloc(uFlag, uBytes)</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00105">immcli.h:105</a></div></div>
<div class="ttc" id="aa00296_html_aeaaca4dc06f37c780d48a7039c0ad6ba"><div class="ttname"><a href="a00296.html#aeaaca4dc06f37c780d48a7039c0ad6ba">UnloadIME</a></div><div class="ttdeci">VOID UnloadIME(PIMEDPI pImeDpi, BOOL fTerminateIme)</div><div class="ttdef"><b>Definition:</b> <a href="a00296_source.html#l00179">immime.c:179</a></div></div>
<div class="ttc" id="aa00365_html_a177dce23f2b497ba8dc22f5a92d3f3d3"><div class="ttname"><a href="a00365.html#a177dce23f2b497ba8dc22f5a92d3f3d3">PTHREADINFO</a></div><div class="ttdeci">struct tagTHREADINFO * PTHREADINFO</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00762">user.h:762</a></div></div>
<div class="ttc" id="aa00281_html_a228282da05ce7277689efd83c8e1fe2b"><div class="ttname"><a href="a00281.html#a228282da05ce7277689efd83c8e1fe2b">CheckAttribute</a></div><div class="ttdeci">BOOL CheckAttribute(LPBYTE lpComp, DWORD dwCompLen, LPBYTE lpAttr, DWORD dwAttrLen, LPDWORD lpClause, DWORD dwClauseLen)</div><div class="ttdef"><b>Definition:</b> <a href="a00281_source.html#l00223">ctxtinfo.c:223</a></div></div>
<div class="ttc" id="aa02061_html"><div class="ttname"><a href="a02061.html">tagIMEDPI</a></div><div class="ttdef"><b>Definition:</b> <a href="a00344_source.html#l00063">immuser.h:63</a></div></div>
<div class="ttc" id="aa02053_html_a8146bf57bb184ce1cdcf17f9a7847cbb"><div class="ttname"><a href="a02053.html#a8146bf57bb184ce1cdcf17f9a7847cbb">tagIMEINFOEX::wszImeDescription</a></div><div class="ttdeci">WCHAR wszImeDescription[IM_DESC_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00090">immstruc.h:90</a></div></div>
<div class="ttc" id="aa00293_html_adc27486f01a116d0c0eaeb809b796060"><div class="ttname"><a href="a00293.html#adc27486f01a116d0c0eaeb809b796060">DWORD_ALIGN</a></div><div class="ttdeci">#define DWORD_ALIGN(x)</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00130">immcli.h:130</a></div></div>
<div class="ttc" id="aa00305_html_ae9e5b0f1b8fe6200af1101c978ceeb63"><div class="ttname"><a href="a00305.html#ae9e5b0f1b8fe6200af1101c978ceeb63">WCHAR_NULL</a></div><div class="ttdeci">#define WCHAR_NULL</div><div class="ttdef"><b>Definition:</b> <a href="a00305_source.html#l00022">layime.c:22</a></div></div>
<div class="ttc" id="aa00941_html_ab5fefa29de8bde48a74efa8d838bf2d7"><div class="ttname"><a href="a00941.html#ab5fefa29de8bde48a74efa8d838bf2d7">MultiByteToWideChar</a></div><div class="ttdeci">int MultiByteToWideChar(UINT CodePage, DWORD dwFlags, LPCSTR lpMultiByteStr, int cchMultiByte, LPWSTR lpWideCharStr, int cchWideChar)</div></div>
<div class="ttc" id="aa02065_html_afd1b3649525facac4fe2bce0443fb46f"><div class="ttname"><a href="a02065.html#afd1b3649525facac4fe2bce0443fb46f">tagIMEDPI::_tagImeFunctions::ImeSetCompositionString</a></div><div class="ttdeci">PFNSETCOMPSTR ImeSetCompositionString</div><div class="ttdef"><b>Definition:</b> <a href="a00344_source.html#l00086">immuser.h:86</a></div></div>
<div class="ttc" id="aa00341_html_a93b9a7f7677934defcd03ca2c4d41ffa"><div class="ttname"><a href="a00341.html#a93b9a7f7677934defcd03ca2c4d41ffa">NULL_HIMC</a></div><div class="ttdeci">#define NULL_HIMC</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00023">immstruc.h:23</a></div></div>
<div class="ttc" id="aa00293_html_ad5bc7769e253655ef0e137736412d7b7"><div class="ttname"><a href="a00293.html#ad5bc7769e253655ef0e137736412d7b7">bUser32Initialized</a></div><div class="ttdeci">#define bUser32Initialized</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00088">immcli.h:88</a></div></div>
<div class="ttc" id="aa02065_html_a88b87d202592aece5d210d1df94e5039"><div class="ttname"><a href="a02065.html#a88b87d202592aece5d210d1df94e5039">tagIMEDPI::_tagImeFunctions::ImeDestroy</a></div><div class="ttdeci">PFNDESTROY ImeDestroy</div><div class="ttdef"><b>Definition:</b> <a href="a00344_source.html#l00079">immuser.h:79</a></div></div>
<div class="ttc" id="aa00305_html_a73f90b5a96d51c99c7d83b6ad872f4a3"><div class="ttname"><a href="a00305.html#a73f90b5a96d51c99c7d83b6ad872f4a3">LoadFixVersionInfo</a></div><div class="ttdeci">BOOL LoadFixVersionInfo(PIMEINFOEX piiex, PWSTR pszVersionBuffer)</div><div class="ttdef"><b>Definition:</b> <a href="a00305_source.html#l00209">layime.c:209</a></div></div>
<div class="ttc" id="aa00290_html_a34ab8713b440f62e49aca7396078b501"><div class="ttname"><a href="a00290.html#a34ab8713b440f62e49aca7396078b501">KEnglishHangeul</a></div><div class="ttdeci">BOOL KEnglishHangeul(HIMC hIMC, HKL hKL, HWND hWnd)</div></div>
<div class="ttc" id="aa00341_html_ac899aa88e02c855ed80c85ccef785080a8f18818e788e4836e1e1a7bedad609f3"><div class="ttname"><a href="a00341.html#ac899aa88e02c855ed80c85ccef785080a8f18818e788e4836e1e1a7bedad609f3">ImeInfoExKeyboardLayout</a></div><div class="ttdeci">@ ImeInfoExKeyboardLayout</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00133">immstruc.h:133</a></div></div>
<div class="ttc" id="aa00293_html_a6a2bb78ecf5a1bdd3c1d5d1710ccd011"><div class="ttname"><a href="a00293.html#a6a2bb78ecf5a1bdd3c1d5d1710ccd011">ClrICF</a></div><div class="ttdeci">#define ClrICF(pClientImc, flag)</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00134">immcli.h:134</a></div></div>
<div class="ttc" id="aa00305_html_a05aae3da8b024bc1c769b9b9d9b664f9"><div class="ttname"><a href="a00305.html#a05aae3da8b024bc1c769b9b9d9b664f9">AddBackslash</a></div><div class="ttdeci">UINT AddBackslash(PWSTR pwszPath)</div><div class="ttdef"><b>Definition:</b> <a href="a00305_source.html#l00094">layime.c:94</a></div></div>
<div class="ttc" id="aa02061_html_a119f856662bf620259f4e4cdf0ea7414"><div class="ttname"><a href="a02061.html#a119f856662bf620259f4e4cdf0ea7414">tagIMEDPI::wszUIClass</a></div><div class="ttdeci">WCHAR wszUIClass[IM_UI_CLASS_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="a00344_source.html#l00068">immuser.h:68</a></div></div>
<div class="ttc" id="aa00365_html_ab993ad57b0d56b4f9b64df02256b611c"><div class="ttname"><a href="a00365.html#ab993ad57b0d56b4f9b64df02256b611c">HMValidateHandleNoRip</a></div><div class="ttdeci">PVOID FASTCALL HMValidateHandleNoRip(HANDLE h, BYTE btype)</div><div class="ttdef"><b>Definition:</b> <a href="a03752_source.html#l00303">rtl/wow.c:303</a></div></div>
<div class="ttc" id="aa01973_html_a0764aeffdbd1dfa62f71561cb68bc1cd"><div class="ttname"><a href="a01973.html#a0764aeffdbd1dfa62f71561cb68bc1cd">_ENUMREGWORDDATA::a</a></div><div class="ttdeci">REGISTERWORDENUMPROCA a</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00052">immcli.h:52</a></div></div>
<div class="ttc" id="aa00281_html_a45b0ddd2cbbf87791efddc5cc51ff393"><div class="ttname"><a href="a00281.html#a45b0ddd2cbbf87791efddc5cc51ff393">InternalSCS_SETSTR</a></div><div class="ttdeci">LPBYTE InternalSCS_SETSTR(LPCVOID lpCompRead, DWORD dwCompReadLen, LPVOID *lplpNewCompRead, DWORD *lpdwNewCompReadLen, BOOL fAnsi)</div><div class="ttdef"><b>Definition:</b> <a href="a00281_source.html#l00306">ctxtinfo.c:306</a></div></div>
<div class="ttc" id="aa02061_html_a0a773e0cc4dc9fff2db3fa40d0d00ceb"><div class="ttname"><a href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">tagIMEDPI::pfn</a></div><div class="ttdeci">struct tagIMEDPI::_tagImeFunctions pfn</div></div>
<div class="ttc" id="aa03608_html_afd1a0e78d1f88954d93e48ab3821781f"><div class="ttname"><a href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a></div><div class="ttdeci">typedef UINT(FAR WINAPI *MSGSOUNDPROC)()</div></div>
<div class="ttc" id="aa00296_html_a6c7adde846a09f0c21df6d382d983b08"><div class="ttname"><a href="a00296.html#a6c7adde846a09f0c21df6d382d983b08">GET_IMEPROC</a></div><div class="ttdeci">#define GET_IMEPROC(x)</div></div>
<div class="ttc" id="aa00290_html_aca264753730daaafd8b19979ec8b5511"><div class="ttname"><a href="a00290.html#aca264753730daaafd8b19979ec8b5511">KHanjaConvert</a></div><div class="ttdeci">BOOL KHanjaConvert(HIMC hIMC, HKL hKL, HWND hWnd)</div></div>
<div class="ttc" id="aa00293_html_a4a8d67a2c4cc9ce4dd6aabfd9e460635"><div class="ttname"><a href="a00293.html#a4a8d67a2c4cc9ce4dd6aabfd9e460635">ImmAssert</a></div><div class="ttdeci">#define ImmAssert</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00057">immcli.h:57</a></div></div>
<div class="ttc" id="aa02053_html_a7bbc78dead49cc9065a0c1ad01464df6"><div class="ttname"><a href="a02053.html#a7bbc78dead49cc9065a0c1ad01464df6">tagIMEINFOEX::dwProdVersion</a></div><div class="ttdeci">DWORD dwProdVersion</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00088">immstruc.h:88</a></div></div>
<div class="ttc" id="aa00341_html_a1304466f7717c8f5e9a5cd3b3791ac37"><div class="ttname"><a href="a00341.html#a1304466f7717c8f5e9a5cd3b3791ac37">IM_UI_CLASS_SIZE</a></div><div class="ttdeci">#define IM_UI_CLASS_SIZE</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00057">immstruc.h:57</a></div></div>
<div class="ttc" id="aa00344_html_a62ef1d2de4f5999445749347090577a3"><div class="ttname"><a href="a00344.html#a62ef1d2de4f5999445749347090577a3">PIMEDPI</a></div><div class="ttdeci">struct tagIMEDPI * PIMEDPI</div></div>
<div class="ttc" id="aa02889_html"><div class="ttname"><a href="a02889.html">tagTHREADINFO</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02260">userk.h:2260</a></div></div>
<div class="ttc" id="aa00371_html_a906cb0845450a5d5422ce513ecd8a32f"><div class="ttname"><a href="a00371.html#a906cb0845450a5d5422ce513ecd8a32f">RIPMSG2</a></div><div class="ttdeci">#define RIPMSG2(flags, szFmt, p1, p2)</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00133">winerrp.h:133</a></div></div>
<div class="ttc" id="aa02589_html"><div class="ttname"><a href="a02589.html">tagIMC</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01458">user.h:1458</a></div></div>
<div class="ttc" id="aa00341_html_aab2b0794609c3d5c18992125e5950697"><div class="ttname"><a href="a00341.html#aab2b0794609c3d5c18992125e5950697">IMEF_LOADERROR</a></div><div class="ttdeci">#define IMEF_LOADERROR</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00051">immstruc.h:51</a></div></div>
<div class="ttc" id="aa00341_html_ab070ce633144ec802e93fe55015435ab"><div class="ttname"><a href="a00341.html#ab070ce633144ec802e93fe55015435ab">IMEF_NONLOAD</a></div><div class="ttdeci">#define IMEF_NONLOAD</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00050">immstruc.h:50</a></div></div>
<div class="ttc" id="aa00281_html_ad80bdf0d375b88695668dac026159464"><div class="ttname"><a href="a00281.html#ad80bdf0d375b88695668dac026159464">InternalSCS_CHANGEATTR</a></div><div class="ttdeci">LPBYTE InternalSCS_CHANGEATTR(HIMC hImc, LPCVOID lpCompRead, DWORD dwCompReadLen, DWORD dwIndex, LPVOID *lplpNewCompRead, DWORD *lpdwNewCompReadLen, BOOL fAnsi)</div><div class="ttdef"><b>Definition:</b> <a href="a00281_source.html#l00369">ctxtinfo.c:369</a></div></div>
<div class="ttc" id="aa00341_html_a9fb5b19393d85537848795a83e2ce2a9"><div class="ttname"><a href="a00341.html#a9fb5b19393d85537848795a83e2ce2a9">IMEF_LOADED</a></div><div class="ttdeci">#define IMEF_LOADED</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00052">immstruc.h:52</a></div></div>
<div class="ttc" id="aa00341_html_a9c78c76b68e17f7c3ef064c07465f071"><div class="ttname"><a href="a00341.html#a9c78c76b68e17f7c3ef064c07465f071">NtUserDestroyInputContext</a></div><div class="ttdeci">BOOL NtUserDestroyInputContext(HIMC hImc)</div></div>
<div class="ttc" id="aa02053_html_a119f856662bf620259f4e4cdf0ea7414"><div class="ttname"><a href="a02053.html#a119f856662bf620259f4e4cdf0ea7414">tagIMEINFOEX::wszUIClass</a></div><div class="ttdeci">WCHAR wszUIClass[IM_UI_CLASS_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00084">immstruc.h:84</a></div></div>
<div class="ttc" id="aa00026_html_a46278f8b1db32b9b4679eee6abc9e1b4"><div class="ttname"><a href="a00026.html#a46278f8b1db32b9b4679eee6abc9e1b4">GetKeyboardLayout</a></div><div class="ttdeci">HKL GetKeyboardLayout(DWORD idThread)</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l03732">client.c:3732</a></div></div>
<div class="ttc" id="aa00311_html_a5d94d0239203482be832b9a8e6f67754"><div class="ttname"><a href="a00311.html#a5d94d0239203482be832b9a8e6f67754">ImmUnlockIMC</a></div><div class="ttdeci">BOOL WINAPI ImmUnlockIMC(HIMC hImc)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00302">misc.c:302</a></div></div>
<div class="ttc" id="aa00311_html_a4363eede481a6941c0b440711a64442c"><div class="ttname"><a href="a00311.html#a4363eede481a6941c0b440711a64442c">ImmUnlockIMCC</a></div><div class="ttdeci">BOOL WINAPI ImmUnlockIMCC(HIMCC hIMCC)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00399">misc.c:399</a></div></div>
<div class="ttc" id="aa00290_html_a24fb9a95d0840522ea450a58c1d991c6"><div class="ttname"><a href="a00290.html#a24fb9a95d0840522ea450a58c1d991c6">JCloseOpen</a></div><div class="ttdeci">BOOL JCloseOpen(HIMC hIMC, HKL hKL, HWND hWnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00649">hotkey.c:649</a></div></div>
<div class="ttc" id="aa02057_html"><div class="ttname"><a href="a02057.html">tagCLIENTIMC</a></div><div class="ttdef"><b>Definition:</b> <a href="a00344_source.html#l00023">immuser.h:23</a></div></div>
<div class="ttc" id="aa00344_html_a013cc3374cd90a89e95081008e1de08b"><div class="ttname"><a href="a00344.html#a013cc3374cd90a89e95081008e1de08b">PCLIENTIMC</a></div><div class="ttdeci">struct tagCLIENTIMC * PCLIENTIMC</div></div>
<div class="ttc" id="aa00311_html_abfbbdf31138ad5f8b5049178ddbe235a"><div class="ttname"><a href="a00311.html#abfbbdf31138ad5f8b5049178ddbe235a">ImmCreateIMCC</a></div><div class="ttdeci">HIMCC WINAPI ImmCreateIMCC(DWORD dwSize)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00355">misc.c:355</a></div></div>
<div class="ttc" id="aa02053_html_a0a3a84deefbb80ce558a51542d96d9d4"><div class="ttname"><a href="a02053.html#a0a3a84deefbb80ce558a51542d96d9d4">tagIMEINFOEX::wszImeFile</a></div><div class="ttdeci">WCHAR wszImeFile[IM_FILE_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00091">immstruc.h:91</a></div></div>
<div class="ttc" id="aa02061_html_a193b0c2e24d821084e237bb1c54e8cc4"><div class="ttname"><a href="a02061.html#a193b0c2e24d821084e237bb1c54e8cc4">tagIMEDPI::hKL</a></div><div class="ttdeci">HKL hKL</div><div class="ttdef"><b>Definition:</b> <a href="a00344_source.html#l00066">immuser.h:66</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_47153d622fb9b44b5267fed192e6cede.html">imm</a></li><li class="navelem"><a class="el" href="a00293.html">immcli.h</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
